diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-05-12 02:03:46 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-05-12 02:03:46 +0200 |
| commit | 4ea24424833d36602b2949d6e22e15e09dad87f2 (patch) | |
| tree | d7bfe9e60b04f5aab697fab6a4fa271282362dee /makext.mk | |
| parent | a40430980c2ae462c87fd931db178e20c3a97633 (diff) | |
| download | makext-4ea24424833d36602b2949d6e22e15e09dad87f2.tar.gz | |
Added screening for all included files in Makefile
Diffstat (limited to 'makext.mk')
| -rw-r--r-- | makext.mk | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |
