help-gnu-utils
[Top][All Lists]
Advanced

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

Re: gnumake - tests for target


From: Paul D. Smith
Subject: Re: gnumake - tests for target
Date: 03 Dec 2004 15:34:32 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

%% Randy Yates <randy.yates@sonyericsson.com> writes:

  ry> Is there a variable or otherwise a way to test to see what target
  ry> is specified?

>From the rest of your post I'm assuming you mean "what target is
specified _on the command line_".


Yes, there is.  See the GNU make user's manual and look for the
documentation on the MAKECMDGOALS variable.  There's even an example of
doing exactly what you want.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]