2 ms·
Another trick, create a `help` target: help: ## Show this help @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\
by mvaliente2001 7y ago
Another trick, create a `help` target:
help: ## Show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
foo: ## foo help
# make help will print the names of the targets with
# the help message following ##
I don't remember the source, I think I saw it in a stackoverflow question.