GNU Make 4 · Variables and functions

Self-documenting help

Print each target's ## comment. Run it with make help.

help: ## Show this help
	@grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "%-15s %s\n", $$1, $$2}'

Official GNU Make 4 documentation

More variables and functions commands

All variables and functions commands · GNU Make 4 cheatsheet

Was this page helpful?