From 65228439acba58a5ee0bf690b1c1420663332bb5 Mon Sep 17 00:00:00 2001 From: Md Tahsin Rahman Date: Tue, 8 Oct 2019 22:29:06 +0600 Subject: [PATCH] Add rule to verify generated codes and manifests --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 33079e61aa3f..af22a6d7b4c1 100644 --- a/Makefile +++ b/Makefile @@ -287,6 +287,7 @@ verify: ./hack/verify-doctoc.sh ./hack/verify-generated-files.sh $(MAKE) verify-modules + $(MAKE) verify-gen .PHONY: verify-modules verify-modules: modules @@ -294,6 +295,12 @@ verify-modules: modules echo "go module files are out of date"; exit 1; \ fi +.PHONY: verify-gen +verify-gen: generate + @if !(git diff --quiet HEAD); then \ + echo "generated files are out of date, run make generate"; exit 1; \ + fi + .PHONY: clean-book clean-book: ## Remove all generated GitBook files rm -rf ./docs/book/_book