Make help the default Makefile target
This commit is contained in:
parent
f5e4ddbc81
commit
5664cc1aa2
10
Makefile
10
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue