[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] listing targets in Makefile



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.