Re: AM Conditional for SUBDIRS

2008-08-07 Thread Ralf Wildenhues
Hello Vikram, * Vikram Ambrose wrote on Thu, Aug 07, 2008 at 10:49:58PM CEST: > Monty Taylor wrote: >> Vikram Ambrose wrote: >>> >>> SUBDIRS = pkgA pkgB $(extra_pkgs) >>> >>> extra_pkgs = >>> if BUILD_pkgC >>> extra_pkgs += pkgC >>> endif >>> >>> Both of which work, for make; make install; make

Re: AM Conditional for SUBDIRS

2008-08-07 Thread Vikram Ambrose
Monty Taylor wrote: Vikram Ambrose wrote: I have a problem trying to conditional include a subdir into a build configuration or not. I have tried two things. 1) - SUBDIRS = pkgA pkgB if BUILD_pkgC SUBDIRS += pkgC endif --

Re: AM Conditional for SUBDIRS

2008-08-07 Thread Monty Taylor
Vikram Ambrose wrote: > I have a problem trying to conditional include a subdir into a build > configuration or not. > > I have tried two things. > 1) > - > SUBDIRS = pkgA pkgB > > if BUILD_pkgC > SUBDIRS += pkgC > endif >

AM Conditional for SUBDIRS

2008-08-07 Thread Vikram Ambrose
I have a problem trying to conditional include a subdir into a build configuration or not. I have tried two things. 1) - SUBDIRS = pkgA pkgB if BUILD_pkgC SUBDIRS += pkgC endif - 2) -

Re: Nesting and final linking ?

2008-08-07 Thread Ralf Wildenhues
Hi Nick, * nickthefarrow wrote on Thu, Aug 07, 2008 at 02:27:03PM CEST: > Ralf, > > Spot on :) I wish all reports were this straightforward. ;-) > bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 --tag=CXX -o This is weird: why is there a --tag=CXX so late in the game? It should appear be

Re: Nesting and final linking ?

2008-08-07 Thread nickthefarrow
Ralf, Spot on :) I had managed to find this, while you were posting your reply by generating a simple project from scratch, and new makefile.am's and per chance I did not include the '.' to these and so I managed to work it back. I had not appreciated that the top level is made last , I have not

Re: Nesting and final linking ?

2008-08-07 Thread Ralf Wildenhues
Hi Nick, * nickthefarrow wrote on Thu, Aug 07, 2008 at 10:17:57AM CEST: > > Making all in . > make[2]: Entering directory `/home/nick/libwhite' > make[2]: *** No rule to make target `src/common/libcommon.la', needed by > `libwhite.la'. Stop. > make[2]: Leaving directory `/home/nick/libwhite' [.

Re: Nesting and final linking ?

2008-08-07 Thread nickthefarrow
Hi, Thanks Ralf, this worked brilliantly. But now for some reason is broken and would welcome someone who has had more experience than me. The main issue is that I have redone the build sequence several times and I really cant work out what is wrong. I have re-autoscanned/automake..././configure