Skip to content

Commit

Permalink
chore: Ignore commented-out targets in make help
Browse files Browse the repository at this point in the history
There's a target that is commented-out in `envtest/integration.mk` that
still shows up in the output of `make help`.

This commit filters out lines that start with a comment (`#`)

Signed-off-by: Manuel Hutter <[email protected]>
  • Loading branch information
mhutter committed Oct 27, 2023
1 parent 95398eb commit 5b051f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MAKEFLAGS += --no-builtin-variables

.PHONY: help
help: ## Show this help
@grep -E -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
@grep -E -h '^[^#].+\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

# extensible array of targets. Modules can add target to this variable for the all-in-one target.
clean_targets := build-clean
Expand Down

0 comments on commit 5b051f3

Please sign in to comment.