mirror of
https://github.com/slimtoolkit/slim.git
synced 2025-06-03 04:00:23 +00:00
fix make help command to show target name (#572)
Signed-off-by: Reeta Singh <singh.reeta66@gmail.com>
This commit is contained in:
parent
226ac0d3f8
commit
b4cfe6c5a9
2
Makefile
2
Makefile
@ -21,7 +21,7 @@ fmt: ## format all golang files
|
||||
'$(CURDIR)/scripts/src.fmt.sh'
|
||||
|
||||
help: ## prints out the menu of command options
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||
@awk -F ':.*?## ' '/^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||
|
||||
inspect: ## report suspicious constructs and linting errors
|
||||
'$(CURDIR)/scripts/src.inspect.sh'
|
||||
|
Loading…
Reference in New Issue
Block a user