-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Schwab wrote: > David Sveningsson <[EMAIL PROTECTED]> writes: > >> Hi, I am having some problems with conditional sources. This is what I >> have in Makefile.am: >> >> lib_LTLIBRARIES = libfoo.la >> libfoo_la_SOURCES = foo.cpp >> if WANT_BAR >> libfoo_la_SOURCES += a.cpp >> else >> libfoo_la_SOURCES += b.cpp >> endif >> >> AM_CPPFLAGS = -I${top_srcdir}/include >> libfoo_la_LDFLAGS = -version-info 0:0:0 >> >> I have been reading both autoconf and automake manuals and as far as I can >> see the above should work. However the files (a.cpp or b.cpp) is always >> added at the bottom of the generated Makefile and are therefore not used >> in the compilation. No matter what I try I cannot get even the above code >> to generate a correct makefile but obviously I am doing something wrong. > > Remove the indentation.
Duh. Of course. But the actual answer is to not indent with TAB characters. John -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkizKagACgkQdcgqmRY/OH8feACglzA/fX3HrTW6VZJgTeuHbg/F LsUAnj91T+13NdbPMiIanGWHkrQ2kvLp =qTXY -----END PGP SIGNATURE-----