Created
March 31, 2014 20:46
-
-
Save mrvaldes/9901842 to your computer and use it in GitHub Desktop.
list targets in a Makefile, taken from here: https://stackoverflow.com/questions/3063507/list-goals-targets-in-gnu-make
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment