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.

Revisions

  1. rot26 revised this gist Oct 22, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    ## help: Any text with two hashes will be output on `make help`
    ## 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:
  2. rot26 created this gist Oct 22, 2019.
    4 changes: 4 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    ## help: Any text with two hashes will be output on `make help`
    .PHONY : help
    help : Makefile
    @sed -n 's/^##//p' $< | column -t -s: