Add help target to list available targets

This commit is contained in:
2025-12-07 18:51:43 +01:00
parent 4b94ea7a41
commit 807f067101
4 changed files with 49 additions and 19 deletions

7
build/make.help Normal file
View File

@ -0,0 +1,7 @@
define print_help
@make -pqR : 2>/dev/null \
| awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \
| sort \
| grep -E -v -e '^[^[:alnum:]]' -e '^$@$$' \
| xargs -I _ echo _
endef