Skip to content

Instantly share code, notes, and snippets.

@ben181231
Created May 18, 2021 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ben181231/1aa6aa1fccbfb8b095ed092073a3010d to your computer and use it in GitHub Desktop.
Save ben181231/1aa6aa1fccbfb8b095ed092073a3010d to your computer and use it in GitHub Desktop.
Auto-helped Makefile
.PHONY: help
help: ## Show this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[33m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z\/_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment