Re: How do I *conditionally* add to INSTALL_DIRS ?

2007-01-09 Thread atoz
Ralf Wildenhues wrote: OK, but you insist on the targets `man-pages' and `readme', you can just put the whole block inside an if: if MAN_PAGES man-pages: # do your stuff else man-pages: # do nothing fi my vars are called WANT_MAN_PAGES, WANT_README etc, but other than tha

Re: How do I *conditionally* add to INSTALL_DIRS ?

2007-01-09 Thread Ralf Wildenhues
* atoz wrote on Tue, Jan 09, 2007 at 09:54:47PM CET: > Ralf Wildenhues wrote: > > ># Makefile.am snippet: > >if MAN_PAGES > >INSTALL_DIRS += $(foomandir) > >endif > >if FOO_DOCS > >INSTALL_DIRS += $(foodocdir) > >fi > > this doesn't make a difference though because automake copies this > v

Re: How do I *conditionally* add to INSTALL_DIRS ?

2007-01-09 Thread atoz
thank you for your reply Ralf Wildenhues wrote: If you go by the GNU Coding Standards, you should use --enable for these, as they don't specify interaction with external packages. fair enough, but it doesn't change the nature of my problem. Instead of this: # man pages if test -n "${with_

Re: building texi files with make check under AIX - how to stop it!!

2007-01-09 Thread Ralf Wildenhues
Hi Ed, * Ed Hartnett wrote on Thu, Jan 04, 2007 at 04:49:00PM CET: > > I am using automake 1.10, and having a problem on AIX systems, with > AIX make. [...] > With GNU make this works well everywhere, but using the AIX make it > tries to build the documents anyway, and this causes an error: Firs

Re: How do I *conditionally* add to INSTALL_DIRS ?

2007-01-09 Thread Ralf Wildenhues
Hello atoz, * atoz wrote on Tue, Jan 09, 2007 at 12:03:54PM CET: > I have added some install options to configure, for example ... > > --with-man-pages > --with-readme > > and some others If you go by the GNU Coding Standards, you should use --enable for these, as they don't specify interaction

How do I *conditionally* add to INSTALL_DIRS ?

2007-01-09 Thread atoz
I have added some install options to configure, for example ... --with-man-pages --with-readme and some others I then tried to get automake to add the relevant instructions via automake.am INSTALL_DIRS, like so ... # man pages if test -n "${with_man_pages}"; then \ INSTALL_DIRS += $

Re: Preprocessing C++ only

2007-01-09 Thread Stepan Kasal
Hello, On Mon, Jan 08, 2007 at 03:09:13PM +, Alan Larkin wrote: > Tim Van Holder wrote: > > # Not sure if this is needed for automake; but it's needed by GNU make > > # (without it it will not try the .cpp.i rule). > > .SUFFIXES: .i this is what make understands, Automake writes it to Makefil