on develop help sign in
Adding convenience make target to audit non-generated libraries
commit32b9ef3af35ff1a264159c44bf9ce781da32330b authorBrendan Hay <brendan.g.hay@gmail.com> dateFri 18 Mar 2016, 14:51 (11 years ago) parent038dc68
1 file changed+8
gen/Makefile+8
gen/Makefile+8
@@ -55,3 +55,11 @@ $(MODEL_DIR): vendor/google-api-go-client
5555
5656vendor/google-api-go-client:
5757 git clone git@github.com:google/google-api-go-client $@
58+
59+.PHONY: audit
60+
61+ACTUAL = $(addsuffix \\n,$(sort $(notdir $(MODELS))))
62+EXPECT = $(addsuffix -api.json\\n,$(sort $(notdir $(basename $(wildcard annex/*.json)))))
63+
64+audit: $(MODEL_DIR)
65+ @diff -B -y <(echo -e $(ACTUAL)) <(echo -e $(EXPECT))