bug-make
[Top][All Lists]
Advanced

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

Re: make- target specific variables


From: Paul Smith
Subject: Re: make- target specific variables
Date: Tue, 08 Sep 2009 09:11:04 -0400

On Tue, 2009-09-08 at 10:12 +0530, Venkata Rajasekharu wrote:
> Hi all, 
> 
> makefile:
> ---------------------
> VAR = 1 $< 1
> all : VAR += 2 $< 2
> 
> all: makefile
>         echo $(VAR)
> -------------------
> 
> bash-3.00$ make 
> 1 1 2 makefile 2
> 
> Since VAR is a recursively defined variable its value should be
> evaluated during the command execution.
> 
> But why it is not 
>     "1 makefile 1 2 makefile 2 "

I get "1 makefile 1 2 makefile 2", using GNU make 3.81.

BTW, please choose either bug-make OR help-make, but not both, when
asking questions.  Thanks!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "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]