help-make
[Top][All Lists]
Advanced

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

RE: Fun With Indirection


From: Dave Korn
Subject: RE: Fun With Indirection
Date: Sat, 1 Sep 2007 10:20:13 +0100

On 01 September 2007 02:20, David A. Greene wrote:

> On Tuesday 28 August 2007 23:07, David A. Greene wrote:
> 
>> However, if I uncomment one of the lines calling testera or testerb, I get
>> a "missing separator" error.
> 
> Ok, I determined that I can eliminate the error by doing this:
> 
> __sink := $(call testera,VAR1,VAR2,$$(info var1 yes),$$(info var2 yes))
> __sink := $(call testerb,VAR1,VAR2,test1,test2)
> 
> So what's going on here?  testa and testb define Makefile fragments and
> I wouldn't have thought these functions would "return" anything to their
> call sites.  Things also work if I do $(eval $(call testera,...).
> 
> If I do this:
> 
> $(info sink = $(__sink)blah)
> 
> I see this on a "make all":
> 
> sink = blah
> 
> There's nothing actually returned into __sink.  So what gives?  Why the
> missing separator/parse error?

  I think you've found a real bug.  I've run into something like this before 
but could never make a simple testcase because it was part of a huge build 
system.  If I get some spare time this weekend I'll try and debug it.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....





reply via email to

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