diff --git a/Makefile b/Makefile index 599c992575..7b22e80b7c 100644 --- a/Makefile +++ b/Makefile @@ -34,12 +34,18 @@ else go test ./... endif +verify-codegen: + ./hack/verify-codegen.sh + +update-codegen: + ./hack/update-codegen.sh + certificate-and-key: ifeq ($(GENERATE_DEFAULT_CERT_AND_KEY),1) ./build/generate_default_cert_and_key.sh endif -container: test nginx-ingress certificate-and-key +container: test verify-codegen nginx-ingress certificate-and-key cp $(DOCKERFILEPATH)/$(DOCKERFILE) ./Dockerfile docker build $(DOCKER_BUILD_OPTIONS) --build-arg IC_VERSION=$(VERSION)-$(GIT_COMMIT) -f Dockerfile -t $(PREFIX):$(TAG) . diff --git a/hack/verify-codegen.sh b/hack/verify-codegen.sh index d02a6fa395..894c9cbab4 100755 --- a/hack/verify-codegen.sh +++ b/hack/verify-codegen.sh @@ -43,6 +43,6 @@ if [[ $ret -eq 0 ]] then echo "${DIFFROOT} up to date." else - echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh" + echo "${DIFFROOT} is out of date. Please regenerate code" exit 1 fi