On 03/11/2013 10:31 AM, Bert Wesarg wrote:
> Hi,
> 
> I have one more question here:
> 
> On Thu, Feb 14, 2013 at 1:39 PM, Stefano Lattarini
> <stefano.lattar...@gmail.com> wrote:
>> On 02/14/2013 01:20 PM, Bert Wesarg wrote:
>>> Hi,
>>>
>>> On Thu, Feb 14, 2013 at 11:26 AM, Stefano Lattarini wrote:
>>> What definitily will not work ist something like this, right?
>>>
>>> here = %reldir%
>>> target = %canon_reldir%/foo
>>>
>>>         bin_PROGRAMS += ${here}/foo
>>>         ${target}_SOURCES = ${here}/bar.c
>>>
> 
> I have the impression that variable references in filenames aren't
> supported anyway, right?
> 
Wrong, actually.  What isn't supported are variable references in
variable/primary names:
    $ cat > Makefile.am <<-END
        foo = bin
        $(foo)_PROGRAMS = bar
    END
    $ automake -a
    Makefile.am:2: bad characters in variable name `$(foo)_PROGRAMS'
    Makefile.am:2: `$(foo)_PROGRAMS' is used but `$(foo)dir' is undefined

Best regards,
  Stefano

Reply via email to