Skip to content

Commit

Permalink
extract help from remaining makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura committed Feb 22, 2024
1 parent 5e77f52 commit 50f5137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
7 changes: 1 addition & 6 deletions components/operator/hack/ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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<target>\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

Expand Down
8 changes: 2 additions & 6 deletions components/operator/hack/local/Makefile
Original file line number Diff line number Diff line change
@@ -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<target>\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.
Expand Down

0 comments on commit 50f5137

Please sign in to comment.