Skip to content

Instantly share code, notes, and snippets.

@joyrexus
Created May 15, 2013 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joyrexus/5585135 to your computer and use it in GitHub Desktop.
Save joyrexus/5585135 to your computer and use it in GitHub Desktop.
Phony target for listing all targets in a Makefile.
.PHONY: list
list:
@perl -ne'print "$$1\n" if /^([^\.][\w\.]*):/' Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment