Skip to content

Instantly share code, notes, and snippets.

@rot26
Last active October 22, 2019 03:32
Show Gist options
  • Save rot26/2dd63c498baf1a5ca53dd0c79c93c10c to your computer and use it in GitHub Desktop.
Save rot26/2dd63c498baf1a5ca53dd0c79c93c10c to your computer and use it in GitHub Desktop.
[Makefile help] self-documenting makefile #make #documenting
## help: display this help message
# Any line prefixed with two hashes will be output on `make help`
# The colon `:` is the alignment seperator
.PHONY : help
help : Makefile
@sed -n 's/^##//p' $< | column -t -s:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment