summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--makext.mk10
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