Re: how to create dependencies for conditional sources

2007-07-01 Thread Roumen Petrov
Now I understand what is my failure. First I mix configure substitutions and automake conditionals and second in my test case EXTRA_...SOURCES is missing. Documentation is OK. I will use conditionals since is more simple although is listed as second solution in Documentation. Thanks, Roumen

Re: how to create dependencies for conditional sources

2007-07-01 Thread Ralf Wildenhues
Hello Roumen, * Roumen Petrov wrote on Sun, Jul 01, 2007 at 09:30:51PM CEST: > Ralf Wildenhues wrote: > > > >noinst_PROGRAMS = target > >target_SOURCES = main.c > > > >if WITH_CASE1 > >target_SOURCES += case1.c > >endif > > > >if WITH_CASE2 > >target_SOURCES += case2.c > >endif > >--- snip --- > >

Re: how to create dependencies for conditional sources

2007-07-01 Thread Roumen Petrov
Ralf Wildenhues wrote: Hello Roumen, * Roumen Petrov wrote on Thu, Jun 28, 2007 at 10:26:31PM CEST: Please find attached test case "bootstrap.sh". How to write Makefile.am so that created makefiles to contain dependencies for conditional sources ? For example, you coud use this Make

Re: how to create dependencies for conditional sources

2007-07-01 Thread Ralf Wildenhues
Hello Roumen, * Roumen Petrov wrote on Thu, Jun 28, 2007 at 10:26:31PM CEST: > Please find attached test case "bootstrap.sh". > > How to write Makefile.am so that created makefiles to contain > dependencies for conditional sources ? For example, you coud use this Makefile.am instead: --- snip

how to create dependencies for conditional sources

2007-06-28 Thread Roumen Petrov
Please find attached test case "bootstrap.sh". How to write Makefile.am so that created makefiles to contain dependencies for conditional sources ? Roumen #! /bin/sh cat > configure.ac < Makefile.am < main.c aclocal automake --foreign --add-missing --copy #autoconf #./configure grep AMDEP.