Help
注意事项:
- 不能用空格替换tab
#! /usr/bin/env make
there: ## god bless you
@echo 'hi there'
.PHONY: help
.DEFAULT_GOAL := help
# Ref: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
网友评论