mirror of
https://github.com/status-im/keycard-redeem.git
synced 2025-01-13 21:54:39 +00:00
11 lines
424 B
Makefile
11 lines
424 B
Makefile
|
CONTRACTS_PATH=./contracts
|
||
|
RELAYER_CONTRACTS_PATH=$$(realpath ./scripts/contracts)
|
||
|
|
||
|
build-relayer-contracts:
|
||
|
rm -rf $(RELAYER_CONTRACTS_PATH); \
|
||
|
yarn run solcjs -o $(RELAYER_CONTRACTS_PATH) --bin --abi $$(find $(CONTRACTS_PATH) -name *.sol); \
|
||
|
for fileName in $$(ls $(RELAYER_CONTRACTS_PATH)); do \
|
||
|
newName=$${fileName##*_}; \
|
||
|
mv $(RELAYER_CONTRACTS_PATH)/$${fileName} $(RELAYER_CONTRACTS_PATH)/$${newName}; \
|
||
|
done;
|