diff --git a/Makefile b/Makefile index 57a2fdba7f..819d35a3c3 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,10 @@ help: ## Display this help. manifests: controller-gen ## Generate CustomResourceDefinition, RBAC and WebhookConfiguration manifests. GO111MODULE=off $(CONTROLLER_GEN) crd:generateEmbeddedObjectMeta=true rbac:roleName=manager-role webhook paths="./pkg/apis/tensorflow/v1" output:crd:artifacts:config=manifests/base/crds +.PHONY: generate +generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. + GOPATH=$(shell go env GOPATH) GO111MODULE=off hack/update-codegen.sh + ##@ Build .PHONY: build