From 4ea24424833d36602b2949d6e22e15e09dad87f2 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 12 May 2024 02:03:46 +0200 Subject: Added screening for all included files in Makefile --- Makefile | 4 ++-- makext.mk | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 1ee4ca8..1b94610 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -M_DESCRIPTION="This provides some additional tools for makefiles." -M_LICENSE="Released under the BSD two-clause license, see the LICENSE file for more information." +MK_DESCRIPTION="This provides some additional tools for makefiles." +MK_LICENSE="Released under the BSD two-clause license, see the LICENSE file for more information." include makext.mk diff --git a/makext.mk b/makext.mk index 613514e..cf25906 100644 --- a/makext.mk +++ b/makext.mk @@ -13,11 +13,11 @@ # to learn more and contribute to the project. .help: -ifdef M_DESCRIPTION - @echo "$(M_DESCRIPTION)\n" | fmt +ifdef MK_DESCRIPTION + @echo "$(MK_DESCRIPTION)\n" | fmt endif @echo "Targets:" - @grep '^.*:.* #' Makefile | sed -E 's/(.*):.*#(.*)/ \1###\2/' | column -t -s '###' -ifdef M_LICENSE - @echo "\n$(M_LICENSE)" | fmt + @grep -vE '^[[:space:]]' $(MAKEFILE_LIST) | grep -E '^.*:.* #' | sed -E 's/(.*):.*#(.*)/ \1###\2/' | column -t -s '###' +ifdef MK_LICENSE + @echo "\n$(MK_LICENSE)" | fmt endif -- cgit v1.2.3