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
- Define variables
- Automatic variables
- List files and change extensions
- Run a command and capture its output
- Use conditionals
- Include another makefile
All variables and functions commands · GNU Make 4 cheatsheet