From 5dc86e2aac7881f3edd983c598b81a273c04c7a7 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Wed, 12 Oct 2022 13:58:25 +0400 Subject: [PATCH] [#172] Makefile: Add filter to help target Signed-off-by: Angira Kekteeva --- help.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/help.mk b/help.mk index 97f2667..7964236 100644 --- a/help.mk +++ b/help.mk @@ -1,5 +1,7 @@ .PHONY: help +HELP_MAKEFILE_LIST=$(filter-out %/artifacts.mk, $(MAKEFILE_LIST)) + # Show this help prompt help: @echo ' Usage:' @@ -8,4 +10,4 @@ help: @echo '' @echo ' Targets:' @echo '' - @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 + @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