Skip to content

Instantly share code, notes, and snippets.

@paulanunda
Created August 17, 2017 15:12
Show Gist options
  • Save paulanunda/d69fc6d974191b55f0dd1711b20da44b to your computer and use it in GitHub Desktop.
Save paulanunda/d69fc6d974191b55f0dd1711b20da44b to your computer and use it in GitHub Desktop.
# Add the 'help' target below to your makefile, and then
# add "## DESCRIPTIVE TEXT" after each target
.PHONY: help
help: ## Display help
@echo $(MAKEFILE_LIST)
@awk -F ':|##' '/^[^\t].+?:.*?##/ {printf \
"\033[36m%-30s\033[0m %s\n", $$1, $$NF }' $(MAKEFILE_LIST) | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment