bug-automake
[Top][All Lists]
Advanced

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

Re: "conditional +=" doesn't work as suggested by documentation


From: Ralf Wildenhues
Subject: Re: "conditional +=" doesn't work as suggested by documentation
Date: Sat, 13 May 2006 10:06:11 +0200
User-agent: Mutt/1.5.11+cvs20060403

Hi Richard,

* Richard Brooksby wrote on Fri, May 12, 2006 at 06:00:47PM CEST:
> At <http://sources.redhat.com/automake/automake.html> it says:
> >7.1.3.2 Conditional compilation using Automake conditionals
*snip*

This documents Automake version 1.9.6.

> >If your program uses a lot of files, you will probably prefer a  
> >conditional +=.
> >
> >     bin_PROGRAMS = hello
> >     hello_SOURCES = hello-common.c
> >     if LINUX
> >     hello_SOURCES += hello-linux.c
> >     else
> >     hello_SOURCES += hello-generic.c
> >     endif
> 
> The former works, the latter does not.  I'm running automake 1.6.3 on  
> Mac OS X 10.4.  Try putting the attached minimal files in a directory  
> and running "aclocal" followed by "automake".

Current is 1.9.6.  Use that instead of 1.6.3, which is several years
old.  I think the bug you report was fixed in 1.7, but I wasn't using
Automake back in those times.  Oodles of other bugs have been fixed
since.

Cheers,
Ralf




reply via email to

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