eth-address-index/solidity/Makefile

20 lines
762 B
Makefile
Raw Normal View History

2021-01-10 22:03:26 +01:00
SOLC = /usr/bin/solc
2020-12-21 23:00:45 +01:00
all:
2021-01-10 22:03:26 +01:00
$(SOLC) AddressDeclarator.sol --abi --evm-version byzantium | awk 'NR>3' > AddressDeclarator.json
$(SOLC) AddressDeclarator.sol --bin --evm-version byzantium | awk 'NR>3' > AddressDeclarator.bin
2020-12-29 16:08:49 +01:00
truncate -s -1 AddressDeclarator.bin
2021-01-10 22:03:26 +01:00
$(SOLC) TokenUniqueSymbolIndex.sol --abi --evm-version byzantium | awk 'NR>3' > TokenUniqueSymbolIndex.json
$(SOLC) TokenUniqueSymbolIndex.sol --bin --evm-version byzantium | awk 'NR>3' > TokenUniqueSymbolIndex.bin
2020-12-29 19:44:14 +01:00
truncate -s -1 TokenUniqueSymbolIndex.bin
2020-12-21 23:00:45 +01:00
test: all
2020-12-29 19:44:14 +01:00
#python test.py
python test_tokenindex.py
2021-01-10 22:03:26 +01:00
install: all
cp -v AddressDeclarator.{json,bin} ../python/eth_address_declarator/data/
cp -v TokenUniqueSymbolIndex.{json,bin} ../python/eth_token_index/data/
2020-12-21 23:00:45 +01:00
2021-01-10 22:03:26 +01:00
.PHONY: test install