From 1fcef8a2133bfcb08b6436d90764a7d3f35d99bc Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 11 Dec 2020 16:09:35 +0100 Subject: [PATCH] Add json to suffix --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index e660649..531cd78 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,22 @@ # Author: Louis Holbrook 0826EDA1702D1E87C6E2875121D2E7BB88C2A746 # SPDX-License-Identifier: GPL-3.0-or-later -# File-version: 3 +# File-version: 4 INPUTS = $(wildcard *.sol) PREFIX = /usr/local/share/cic/solidity/abi -%.abi: $(wildcard *.sol) +%.abi.json: $(wildcard *.sol) install -vDm0644 $@ $(PREFIX)/$@ %.sol: - solc $@ --abi | awk 'NR>3' > $(basename $@).abi + solc $@ --abi | awk 'NR>3' > $(basename $@).abi.json # TODO: improve, does not detect changes in sol files (I suck at writing makefiles) all: $(INPUTS) -install: $(wildcard *.abi) +install: $(wildcard *.abi.json) clean: - rm -vf *.abi + rm -vf *.abi.json .PHONY: clean install