automake
[Top][All Lists]
Advanced

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

variable substitution refs [PATCH]


From: Richard Boulton
Subject: variable substitution refs [PATCH]
Date: Thu, 2 Aug 2001 01:52:55 +0100
User-agent: Mutt/1.2.5i

I've found another small bug with CVS automake: if a _SOURCES variable
is defined using a substitution reference to a variable, and the variable
being referenced is conditionally defined, the corresponding _OBJECTS
variable is defined without any value from the substitution reference.
eg: 

if COND
var = foo.c
else
var = foo.c
endif
foo_SOURCES = $(var:.a=.b)

sets foo_OBJECTS to empty.  I would expect foo_OBJECTS to contain foo.o.

I attach a patch which adds a regression test and a fix.
Unfortunately, the patch depends on my earlier submitted patch having been
applied already.

-- 
Richard

Attachment: patch2
Description: Text document


reply via email to

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