fix make help command to show target name (#572)

Signed-off-by: Reeta Singh <singh.reeta66@gmail.com>
This commit is contained in:
Reeta Singh 2023-09-07 01:59:31 -07:00 committed by GitHub
parent 226ac0d3f8
commit b4cfe6c5a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'