2020-04-15 12:03:19 +01:00
|
|
|
all: compile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f DepositContract.abi DepositContract.bin IDepositContract.abi IDepositContract.bin deposit_contract.json
|
|
|
|
|
|
|
|
compile: clean
|
2020-05-14 11:46:54 +01:00
|
|
|
@solc --metadata-literal --bin --abi --overwrite -o . deposit_contract.sol
|
2020-05-13 23:03:42 +01:00
|
|
|
@echo -n '{"abi": ' > deposit_contract.json
|
2020-04-15 12:03:19 +01:00
|
|
|
@cat DepositContract.abi >> deposit_contract.json
|
2020-05-13 23:03:42 +01:00
|
|
|
@echo -n ', "bytecode": "0x' >> deposit_contract.json
|
2020-04-15 12:03:19 +01:00
|
|
|
@cat DepositContract.bin >> deposit_contract.json
|
2020-05-13 23:03:42 +01:00
|
|
|
@echo -n '"}' >> deposit_contract.json
|