eth-faucet/solidity/Makefile

17 lines
730 B
Makefile
Raw Normal View History

2023-02-03 12:41:48 +01:00
SOLC = /usr/bin/solc
all:
$(SOLC) --bin EthFaucet.sol --evm-version byzantium | awk 'NR>3' > EthFaucet.bin
$(SOLC) --abi EthFaucet.sol --evm-version byzantium | awk 'NR>3' > EthFaucet.json
2023-03-21 17:53:37 +01:00
$(SOLC) --metadata EthFaucet.sol --evm-version byzantium | awk 'NR>3' > EthFaucet.metadata.json
2023-02-03 12:41:48 +01:00
$(SOLC) --bin PeriodSimple.sol --evm-version byzantium | awk 'NR>3' > PeriodSimple.bin
$(SOLC) --abi PeriodSimple.sol --evm-version byzantium | awk 'NR==4' > PeriodSimple.json
2023-03-21 17:53:37 +01:00
$(SOLC) --metadata PeriodSimple.sol --evm-version byzantium | awk 'NR==4' > PeriodSimple.metadata.json
truncate -s -1 EthFaucet.bin
truncate -s -1 PeriodSimple.bin
2023-02-03 12:41:48 +01:00
install: all
2023-03-21 17:53:37 +01:00
cp -v *.json ../python/eth_faucet/data/
cp -v *.bin ../python/eth_faucet/data/
2023-02-03 12:41:48 +01:00