Created
November 26, 2019 20:59
-
-
Save wagnerpinheiro/37208fe89ace68addec242c22819c19d to your computer and use it in GitHub Desktop.
A default makefile sample with help support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var_temp := x | |
# HELP | |
# This will output the help for each task | |
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | |
.PHONY: help | |
help: ## This help. | |
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | |
.DEFAULT_GOAL := help | |
config: ## config | |
echo 'config' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment