Extract target comments from the current makefile.
Section: Useful function recipes
Self-documenting help target
makefile
makefile
.PHONY: help
help:
@grep -E '^[a-zA-Z0-9_.-]+:.*?## ' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%-24s %s\n", $$1, $$2}'Explanation
Popular pattern for `make help`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Useful function recipes