Make help the default Makefile target

This commit is contained in:
R Tyler Croy 2020-11-27 21:11:19 -08:00
parent f5e4ddbc81
commit 5664cc1aa2
1 changed files with 5 additions and 5 deletions

View File

@ -10,6 +10,11 @@
## Phony targets
.PHONY: apispecs clean diagram help steps release run
# Cute hack thanks to:
# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help: ## Display this help text
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
run: ## Convenience target for running services
./scripts/shoreman
@ -41,11 +46,6 @@ test: contrib/shunit2/shunit2 ## Run the acceptance tests for steps
done; \
done;
# Cute hack thanks to:
# https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help: ## Display this help text
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clean: ## Clean all temporary/working files
diagram: system.png system.dot ## Generate the diagrams describing otto