eth-address-index/solidity/Makefile
2023-03-26 08:18:46 +01:00

16 lines
557 B
Makefile

SOLC = /usr/bin/solc
all: address_declarator
address_declarator:
$(SOLC) AddressDeclarator.sol --abi --evm-version byzantium | awk 'NR>3' > AddressDeclarator.json
$(SOLC) AddressDeclarator.sol --bin --evm-version byzantium | awk 'NR>3' > AddressDeclarator.bin
$(SOLC) AddressDeclarator.sol --metadata --evm-version byzantium | awk 'NR>3' > AddressDeclarator.metadata.json
truncate -s -1 AddressDeclarator.bin
install: all
cp -v *.json ../python/eth_address_declarator/data/
cp -v *.bin ../python/eth_address_declarator/data/
.PHONY: test install