init
This commit is contained in:
11
.dev/.mk/help/msg.mk
Normal file
11
.dev/.mk/help/msg.mk
Normal file
@ -0,0 +1,11 @@
|
||||
.PHONY: help
|
||||
help: help_message
|
||||
|
||||
help_message:
|
||||
@awk 'BEGIN {FS = ":.*##"; \
|
||||
printf "$(<b>)$(<cYellow>)Usage:$(</>)$(</>) \
|
||||
$(<br>)make $(<cGreen>)<target>$(</>) $(<cBlue>)\"<arguments>\"$(</>)️\
|
||||
$(<br>)$(<br>)$(<b>)$(<cYellow>)Available commands:$(</>)$(</>) \
|
||||
$(<br>)"}/^[a-zA-Z_-]+:.*?##/{ printf " $(<cGreen>)%-10s$(</>) %s$(<br>)", $$1, $$2 } /^##@/{ printf "\
|
||||
$(<br>)$(<b>)%s$(</>)$(<br>)", substr($$0, 5) }'$(MAKEFILE_LIST)
|
||||
|
||||
Reference in New Issue
Block a user