GNU bug report logs - #13928
foo_SOURCES containing unexpanded $(var) breaks with 'subdir-object' option active

Previous Next

Package: automake;

Reported by: Bert Wesarg <bert.wesarg <at> googlemail.com>

Date: Mon, 11 Mar 2013 21:04:02 UTC

Severity: important

Tags: patch

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bert Wesarg <bert.wesarg <at> googlemail.com>
To: Nick Bowler <nbowler <at> elliptictech.com>
Cc: 13928 <at> debbugs.gnu.org, peda <at> lysator.liu.se, Stefano Lattarini <stefano.lattarini <at> gmail.com>, bfriesen <at> simple.dallas.tx.us, eblake <at> redhat.com, miles <at> gnu.org
Subject: bug#13928: VPATH issues with subdir-objects
Date: Tue, 12 Mar 2013 15:39:18 +0100
> Regarding the actual bug: without knowing much (yet!) about the relevant
> Automake internals, I'm a bit surprised that
>
>   src = src
>   foo_SOURCES = $(src)/foo.c
>
> fails with subdir-objects, but on the other hand
>
>   src = src/foo.c
>   foo_SOURCES = $(src)
>
> seems to work just fine...

That's because automake expands entries in _SURCES which are only
variable references. It needs to because of AM_CONDITIONAL. In case
the value of _SOURCES is subject to an condition, the conditional
source file name is stored in an intermediate variable but the actual
assignment happens only if the condition is TRUE. But the intermediate
variable is unconditionally added to the _SOURCES variable.

Bert

>
> Cheers,




This bug report was last modified 10 years and 139 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.