From 50f5137957dd645b0e88d117603abfa8ee892b8d Mon Sep 17 00:00:00 2001 From: Damian Badura Date: Thu, 22 Feb 2024 14:46:52 +0100 Subject: [PATCH] extract help from remaining makefiles --- components/operator/hack/ci/Makefile | 7 +------ components/operator/hack/local/Makefile | 8 ++------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/components/operator/hack/ci/Makefile b/components/operator/hack/ci/Makefile index 8d7c234f0..394843afe 100644 --- a/components/operator/hack/ci/Makefile +++ b/components/operator/hack/ci/Makefile @@ -2,12 +2,7 @@ OPERATOR_ROOT = ../.. PROJECT_ROOT = $(OPERATOR_ROOT)/../.. PROJECT_COMMON = $(OPERATOR_ROOT)/hack/common - -##@ General - -.PHONY: help -help: ## Display this help. - @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) +include ${PROJECT_ROOT}/hack/tools/help.Makefile ##@ Tests diff --git a/components/operator/hack/local/Makefile b/components/operator/hack/local/Makefile index 5681861a2..730b1b63f 100644 --- a/components/operator/hack/local/Makefile +++ b/components/operator/hack/local/Makefile @@ -1,12 +1,8 @@ # local variables PROJECT_COMMON = ../common PROJECT_LOCAL = ../local - -##@ General - -.PHONY: help -help: ## Display this help. - @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) +PROJECT_ROOT = ../../../.. +include ${PROJECT_ROOT}/hack/tools/help.Makefile .PHONY: deploy-k3d deploy-k3d: ## Build image and deploy operator on a k3d cluster.