Skip to content

Instantly share code, notes, and snippets.

@pikonha
Created August 13, 2021 13:20
Show Gist options
  • Save pikonha/c10eff70e275c26e18094c2d6f9c69ad to your computer and use it in GitHub Desktop.
Save pikonha/c10eff70e275c26e18094c2d6f9c69ad to your computer and use it in GitHub Desktop.
Makefile help command
help: ## Show this help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\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