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: Randy Yates
Subject: Re: gnumake - tests for target
Date: 07 Dec 2004 07:39:00 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Military Intelligence)

Doh! So there is! Thanks very much, Paul. 

--Randy


"Paul D. Smith" <psmith@gnu.org> writes:

> %% 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

-- 
Randy Yates
Sony Ericsson Mobile Communications
Research Triangle Park, NC, USA
randy.yates@sonyericsson.com, 919-472-1124


reply via email to

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