Created
May 22, 2019 23:56
-
-
Save ascarter/36141bcca7f37bdb09e5a31b4d5a89c3 to your computer and use it in GitHub Desktop.
Makefile help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HELP_FORMAT=" \033[36m%-25s\033[0m %s\n" | |
.PHONY: help | |
help: ## Display this usage information | |
@echo "Valid targets:" | |
@grep -E '^[^ ]+:.*?## .*$$' $(MAKEFILE_LIST) | \ | |
sort | \ | |
awk 'BEGIN {FS = ":.*?## "}; \ | |
{printf $(HELP_FORMAT), $$1, $$2}' | |
@echo "" | |
@echo "This host will build the following targets if 'make release' is invoked:" | |
@echo $(ALL_TARGETS) | sed 's/^/ /' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment