Skip to content

Commit fa255e5

Browse files
committed
Group Makefile targets
1 parent 6aa0381 commit fa255e5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ROOT_DIR_RELATIVE := .
1717
include $(ROOT_DIR_RELATIVE)/common.mk
1818

1919
# If you update this file, please follow
20-
# https://suva.sh/posts/well-documented-makefiles
20+
# https://www.thapaliya.com/en/writings/well-documented-makefiles/
2121

2222
# Active module mode, as we use go modules to manage dependencies
2323
export GO111MODULE=on
@@ -116,7 +116,7 @@ LDFLAGS := $(shell source ./hack/version.sh; version::ldflags)
116116

117117

118118
## --------------------------------------
119-
## Testing
119+
##@ Testing
120120
## --------------------------------------
121121

122122
# The number of ginkgo tests to run concurrently
@@ -190,7 +190,7 @@ test-conformance-fast: ## Run clusterctl based conformance test on workload clus
190190

191191

192192
## --------------------------------------
193-
## Binaries
193+
##@ Binaries
194194
## --------------------------------------
195195

196196
.PHONY: binaries
@@ -211,7 +211,7 @@ $(SETUP_ENVTEST): # Build setup-envtest from tools folder.
211211
$(SETUP_ENVTEST_BIN): $(SETUP_ENVTEST) ## Build a local copy of setup-envtest.
212212

213213
## --------------------------------------
214-
## Linting
214+
##@ Linting
215215
## --------------------------------------
216216

217217
.PHONY: lint
@@ -226,7 +226,7 @@ lint-fast: $(GOLANGCI_LINT) ## Run only faster linters to detect possible issues
226226
$(GOLANGCI_LINT) run -v --fast=true
227227

228228
## --------------------------------------
229-
## Generate
229+
##@ Generate
230230
## --------------------------------------
231231

232232
.PHONY: modules
@@ -268,7 +268,7 @@ generate-manifests: $(CONTROLLER_GEN) ## Generate manifests e.g. CRD, RBAC etc.
268268
rbac:roleName=manager-role
269269

270270
## --------------------------------------
271-
## Docker
271+
##@ Docker
272272
## --------------------------------------
273273

274274
.PHONY: docker-build
@@ -286,7 +286,7 @@ docker-pull-prerequisites:
286286
docker pull gcr.io/distroless/static:latest
287287

288288
## --------------------------------------
289-
## Docker — All ARCH
289+
##@ Docker — All ARCH
290290
## --------------------------------------
291291

292292
.PHONY: docker-build-all ## Build all the architecture docker images
@@ -314,7 +314,7 @@ staging-manifests:
314314
$(MAKE) $(RELEASE_DIR)/$(MANIFEST_FILE).yaml PULL_POLICY=IfNotPresent TAG=$(RELEASE_ALIAS_TAG)
315315

316316
## --------------------------------------
317-
## Release
317+
##@ Release
318318
## --------------------------------------
319319

320320
$(RELEASE_DIR):
@@ -454,7 +454,7 @@ image-patch-pull-policy: $(IMAGE_PATCH_DIR) $(GOJQ)
454454

455455

456456
## --------------------------------------
457-
## Cleanup / Verification
457+
##@ Cleanup / Verification
458458
## --------------------------------------
459459

460460
.PHONY: clean

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $(TOOLS_BIN_DIR)/%: $(TOOLS_DIR_DEPS)
4949
make -C $(TOOLS_DIR) $(subst $(TOOLS_DIR)/,,$@)
5050

5151
## --------------------------------------
52-
## Help
52+
##@ Help
5353
## --------------------------------------
5454

5555
help: ## Display this help

0 commit comments

Comments
 (0)