Skip to content

Instantly share code, notes, and snippets.

@Sanix-Darker
Created July 8, 2022 13:49
Show Gist options
  • Save Sanix-Darker/1d28fa20b0ccfa6b323eca7fa2831352 to your computer and use it in GitHub Desktop.
Save Sanix-Darker/1d28fa20b0ccfa6b323eca7fa2831352 to your computer and use it in GitHub Desktop.
Makefile.help
.PHONY: run
run: ## This is a comment that will appear on the "make help"
.PHONY: help
help: ## print this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {gsub("\\\\n",sprintf("\n%22c",""), $$2);printf "\033[36m%-20s\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