eth-contract-registry/solidity/Makefile

13 lines
431 B
Makefile

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