Add help target to list available targets
This commit is contained in:
7
build/make.help
Normal file
7
build/make.help
Normal 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
|
||||
Reference in New Issue
Block a user