Skip to content

Commit

Permalink
add Makefile for sets
Browse files Browse the repository at this point in the history
  • Loading branch information
fisherxu committed Jan 3, 2018
1 parent 34d1e37 commit b2b4251
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/set-gen/Makefile
@@ -0,0 +1,15 @@
TOOL=set-gen

test:
@if ! git diff --quiet HEAD; then \
echo "FAIL: git client is not clean"; \
false; \
fi
@go build -o /tmp/$(TOOL)
@PKGS=$$(go list ./sets/types | paste -sd' ' -); \
/tmp/$(TOOL) --logtostderr --v=4 -i $$(echo $$PKGS | sed 's/ /,/g') -O zz_generated -o ./sets
@if ! git diff --quiet HEAD; then \
echo "FAIL: output files changed"; \
git diff; \
false; \
fi

0 comments on commit b2b4251

Please sign in to comment.