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
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 ---
> >
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
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
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.