Skip to content

Commit 5dc86e2

Browse files
masterSplinter01alexvanin
authored andcommitted
[#172] Makefile: Add filter to help target
Signed-off-by: Angira Kekteeva <[email protected]>
1 parent f7ead4b commit 5dc86e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

help.mk

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.PHONY: help
22

3+
HELP_MAKEFILE_LIST=$(filter-out %/artifacts.mk, $(MAKEFILE_LIST))
4+
35
# Show this help prompt
46
help:
57
@echo ' Usage:'
@@ -8,4 +10,4 @@ help:
810
@echo ''
911
@echo ' Targets:'
1012
@echo ''
11-
@awk '/^#/{ comment = substr($$0,3) } comment && /^[a-zA-Z][a-zA-Z0-9._/-]+ ?:/{ print " ", $$1, comment }' $(MAKEFILE_LIST) | column -t -s ':' | grep -v 'IGNORE' | sort -u
13+
@awk '/^#/{ comment = substr($$0,3) } comment && /^[a-zA-Z][a-zA-Z0-9._/-]+ ?:/{ print " ", $$1, comment }' $(HELP_MAKEFILE_LIST) | column -t -s ':' | grep -v 'IGNORE' | sort -u

0 commit comments

Comments
 (0)