%% Nathanael Nerode <[EMAIL PROTECTED]> writes: nn> I'm trying to get some particular information out of a Makefile. nn> 1. Given a target file, is there a rule to remake it? nn> 2. Given a target file, is it a dependency of anything, or not?
The next version of GNU make will provide some introspection capabilities, but it's not clear whether they will solve your problem. Anyway, for now the best way is to use GNU make's -p (print database) option; this is much more reliable (and faster) than using -n and groveling through the output. See the GNU make manual for more info. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://www.paulandlesley.org/gmake/ "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
