diff options
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | makext.mk | 10 |
2 files changed, 7 insertions, 7 deletions
@@ -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 @@ -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 |
