From f2fc9a58b9ed06941735fd9e57820374645f5337 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 12 May 2024 00:58:25 +0200 Subject: Engage! --- makext.mk | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 makext.mk (limited to 'makext.mk') diff --git a/makext.mk b/makext.mk new file mode 100644 index 0000000..613514e --- /dev/null +++ b/makext.mk @@ -0,0 +1,23 @@ +# Makext is a collection of useful extensions for Makefiles, aimed at +# simplifying and enhancing the functionality of Make-based projects. These +# extensions provide additional features and convenience functions to +# improve the build process, manage dependencies, and streamline common +# tasks. +# +# Features include: +# - Enhanced help message generation with support for custom descriptions. +# - Automatic description inclusion in help message. +# - Automatic license inclusion in help message. +# +# Visit the GitHub repository at https://github.com/mitjafelicijan/makext +# to learn more and contribute to the project. + +.help: +ifdef M_DESCRIPTION + @echo "$(M_DESCRIPTION)\n" | fmt +endif + @echo "Targets:" + @grep '^.*:.* #' Makefile | sed -E 's/(.*):.*#(.*)/ \1###\2/' | column -t -s '###' +ifdef M_LICENSE + @echo "\n$(M_LICENSE)" | fmt +endif -- cgit v1.2.3