bug-make
[Top][All Lists]
Advanced

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

RE: conditionals not working for conditional variables in sub-make?


From: Martin Dorey
Subject: RE: conditionals not working for conditional variables in sub-make?
Date: Thu, 7 May 2009 11:15:32 -0700

You misunderstand something.

 

> it outputs:

> VAR=foo VAR2=bar VAR3=foo

 

That's only a small fraction of what I see, with make-3.81.  This is what I see:

 

address@hidden:~/tmp/bug-make-2009-05-07$ make

make var1

make[1]: Entering directory `/home/martind/tmp/bug-make-2009-05-07'

VAR=foo VAR2=bar VAR3=foo

make[1]: Leaving directory `/home/martind/tmp/bug-make-2009-05-07'

make var2

make[1]: Entering directory `/home/martind/tmp/bug-make-2009-05-07'

VAR=bar VAR2=bar VAR3=bar

make[1]: Leaving directory `/home/martind/tmp/bug-make-2009-05-07'

address@hidden:~/tmp/bug-make-2009-05-07$

 

Perhaps you want the "all" rule to say:

 

all: var1 var2

 

Then I see the desired output:

 

address@hidden:~/tmp/bug-make-2009-05-07$ make

VAR=foo VAR2=bar VAR3=foo

address@hidden:~/tmp/bug-make-2009-05-07$

 

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Szekeres István
Sent: Thursday, May 07, 2009 02:57
To: address@hidden
Subject: conditionals not working for conditional variables in sub-make?

 

Please see the makefile attached.

by running it it outputs:

VAR=foo VAR2=bar VAR3=foo

 

but I think VAR2 should be foo.

 

Bug or do I misunderstand something?

 

thanks,

Istvan

 


reply via email to

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