2021-02-02 11:26:44 +01:00
|
|
|
SOLC = /usr/bin/solc
|
|
|
|
|
|
|
|
all:
|
2021-06-04 09:05:08 +02:00
|
|
|
$(SOLC) DemurrageTokenMultiNocap.sol --abi --evm-version byzantium | awk 'NR>3' > DemurrageTokenMultiNocap.json
|
|
|
|
$(SOLC) DemurrageTokenMultiNocap.sol --bin --evm-version byzantium | awk 'NR>3' > DemurrageTokenMultiNocap.bin
|
|
|
|
truncate -s -1 DemurrageTokenMultiNocap.bin
|
2021-02-02 11:26:44 +01:00
|
|
|
|
|
|
|
test: all
|
|
|
|
python ../python/tests/test_basic.py
|
2021-02-03 09:00:24 +01:00
|
|
|
python ../python/tests/test_period.py
|
|
|
|
python ../python/tests/test_redistribution.py
|
2021-02-02 11:26:44 +01:00
|
|
|
|
|
|
|
install: all
|
2021-06-04 09:05:08 +02:00
|
|
|
cp -v DemurrageTokenMultiNocap.{json,bin} ../python/sarafu_token/data/
|
2021-02-02 11:26:44 +01:00
|
|
|
|
|
|
|
.PHONY: test install
|