On 9/9/07, Bryan Ischo <[EMAIL PROTECTED]> wrote: > Hi all. Is there a variable describing the target(s) that make was > invoked with? For example, if I do: > > make libfoo > > Is there a variable available in make that will evaluate to "libfoo"?
Yes. If you check the info pages, following the menu items from the top, to "Invoking make: Running", and then "Goals", you'll find this: ---- `Make' will set the special variable `MAKECMDGOALS' to the list of goals you specified on the command line. If no goals were given on the command line, this variable is empty. Note that this variable should be used only in special circumstances. ---- Philip Guenther _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
