Skip to content

Commit 6128a99

Browse files
committed
Standardize Makefile help target
Include dot-prefixed targets such as .env in help output by adding \.? to the grep regex. Also fix help description: "Display" -> "Displays".
1 parent d146ca0 commit 6128a99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
it: vendor fix stan test ## Run useful checks before commits
33

44
.PHONY: help
5-
help: ## Display this list of targets with descriptions
6-
@grep --extended-regexp '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
5+
help: ## Displays this list of targets with descriptions
6+
@grep --extended-regexp '^\.?[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
77

88
.PHONY: setup
99
setup: build vendor docs/node_modules ai-sync ## Prepare the local environment

0 commit comments

Comments
 (0)