beaufils | 10 years ago | on: Self-Documented Makefile Here is a version with no dependencies to grep or awk but just sed. I did not tested it on OS X yet. help: @eval $$(sed -r -n 's/^([a-zA-Z0-9_-]+):.*?## (.*)$$/printf "\\033[36m%-30s\\033[0m %s\\n" "\1" "\2" ;/; ta; b; :a p' $(MAKEFILE_LIST) | sort)