From 4fdcfb828257f0ff838631232d26929fffa3988a Mon Sep 17 00:00:00 2001 From: Bence Csati Date: Mon, 9 Dec 2024 10:04:41 +0100 Subject: [PATCH] chore: makefile changes Signed-off-by: Bence Csati --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bf1e686..13a7514 100644 --- a/Makefile +++ b/Makefile @@ -56,16 +56,19 @@ help: ## Display this help. ##@ Development +.PHONY: generate +generate: codegen manifests fmt ## Generate code, documentation, etc + +.PHONY: codegen +codegen: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. + $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./api/..." + .PHONY: manifests manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects. $(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./api/..." output:crd:artifacts:config=config/crd/bases $(CONTROLLER_GEN) rbac:roleName=manager-role paths="./internal/controller/telemetry/..." output:rbac:artifacts:config=./config/rbac cp config/crd/bases/* charts/telemetry-controller/crds/ -.PHONY: generate -generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. - $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./api/..." - .PHONY: fmt fmt: ## Run go fmt against code. go fmt ./...