[ale] listing targets in Makefile

hirsch at zapmedia.com hirsch at zapmedia.com
Mon Jan 28 10:31:27 EST 2002


John Wells writes:
 > It seems like there should be a way to do this, but I
 > can't seem to find it.  Is there a way, aside from
 > opening the Makefile and searching through it
 > manually, to simply parse it and list all valid
 > targets?

You can get pretty close by grepping it for colons.  I.e.,
    grep ':' Makefile

You might pick up some extra lines, but a valid target must be in the
form "target:"

--Michael

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list