help-make
[Top][All Lists]
Advanced

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

Re: Target specific and automatic variables


From: Paul D. Smith
Subject: Re: Target specific and automatic variables
Date: Fri, 18 Apr 2003 08:23:11 -0400

%% Pierre Habraken <address@hidden> writes:

  ph> foo: FOOVAR = bla bla
  ph> foo: $(FOOVAR)
  ph>         echo $^

  ph> I'd expect that running this makefile should produce:

  ph> echo bla bla
  ph> bla bla

  ph> Instead it produces:

  ph> echo 

  ph> Could someone tell me what I missed ?

>From the GNU make manual, section "Target-Specific Variable Values":

> As with automatic variables, these values are only available within
> the context of a target's command script (and in other target-specific
> assignments).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          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]