aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2018-08-06 00:26:12 +0100
committerNiall Sheridan <nsheridan@gmail.com>2018-08-06 10:15:21 +0100
commit901103521e70a034d1476d5450d10800c0a29018 (patch)
treec66fa8134bab598f914a8552aff6e0bed4c1e840
parent88e626cd1bd4426052ce54dfd393cb5ba8b3225f (diff)
Error if the git client isn't clean
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1c1f8bc..cbb10ea 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,8 @@ test: dep
go vet ./...
go list ./... |egrep -v 'vendor/|proto$$' |xargs -L1 golint -set_exit_status
gofmt -d $(SRC_FILES)
+ $(MAKE) generate
+ @[ -z "`git status --porcelain`" ] || (echo "unexpected files: `git status --porcelain`" && exit 1)
build: cashier cashierd
@@ -30,4 +32,4 @@ clean:
dep:
go get -u github.com/golang/lint/golint
-.PHONY: dep generate test cashier cashierd \ No newline at end of file
+.PHONY: all build dep generate test cashier cashierd clean