cic-contracts/Makefile
2020-12-11 18:04:32 +01:00

26 lines
534 B
Makefile

# Author: Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746
# SPDX-License-Identifier: GPL-3.0-or-later
# File-version: 4
INPUTS = $(wildcard *.sol)
OUTPUTS = $(patsubst %.sol, %.json, $(INPUTS))
PREFIX = /usr/local/share/cic/solidity/abi
#%.abi.json: $(wildcard *.sol)
# install -vDm0644 $@ $(PREFIX)/$@
.SUFFIXES: .sol .json
.sol.json:
solc $@ --abi | awk 'NR>3' > $(basename $@).json
all: $(OUTPUTS)
install: $(OUTPUTS)
install -vDm0644 -t $(PREFIX) $?
clean:
rm -vf *.json
.PHONY: clean install