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: Szekeres István
Subject: Re: conditionals not working for conditional variables in sub-make?
Date: Thu, 7 May 2009 21:57:58 +0200

Hi,

2009/5/7 Martin Dorey <address@hidden>:
> That's only a small fraction of what I see, with make-3.81.  This is what I
> see:
> [...]
> VAR=foo VAR2=bar VAR3=foo

But here VAR2 should be "foo"!!!! As VAR=foo, the ifeq then-branch
should set it to foo, but it goes into the else branch - which I think
it shouldn't do.

> Perhaps you want the "all" rule to say:
>
> all: var1 var2

No, it is different. I definitely want the sub-make because I want too
runs with VAR substituted to foo in the first run and to bar in the
second. As you can see the VAR variable picks up the right value
(do-echo outputs foo and then bar) but the ifeq does not pick up the
value, basically the ifeq(foo,foo) goes into the else branch.




reply via email to

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