%% [EMAIL PROTECTED] writes:

  m> Is there a way to figure out the name of the top level target?

  m> so if I specify foo-draft as my target via 'gmake foo-draft' i
  m> trigger that extra variable addition.

You can discover what targets were passed on the command line by looking
at MAKECMDGOALS.  See the GNU make manual.

Note this doesn't tell you what the default target is, only what the
targets specified on the command line were (if any).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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

Reply via email to