2023-06-08 17:06:03 +02:00
|
|
|
INPUTS = $(wildcard cic_contracts/unittest/solidity/*.sol)
|
2023-06-06 15:46:55 +02:00
|
|
|
OUTPUTS = $(patsubst %.sol, %.bin, $(INPUTS))
|
|
|
|
|
2023-06-08 17:06:03 +02:00
|
|
|
all: outs package
|
2023-06-06 15:46:55 +02:00
|
|
|
|
|
|
|
.SUFFIXES: .sol .bin
|
|
|
|
|
|
|
|
solidity:
|
|
|
|
|
|
|
|
.sol.bin:
|
|
|
|
solc $(basename $@).sol --evm-version=byzantium --bin | awk 'NR>3' > $@
|
|
|
|
truncate -s -1 $@
|
|
|
|
|
|
|
|
outs: $(OUTPUTS)
|
|
|
|
|
|
|
|
package:
|
|
|
|
python setup.py sdist
|