This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
variables in AC_OUTPUT
- To: automake@gnu.org
- Subject: variables in AC_OUTPUT
- From: Vadim Zeitlin <Vadim.zeitlin@dptmaths.ens-cachan.fr>
- Date: Mon, 31 May 1999 17:03:22 +0200 (CEST)
Hello,
I'm writing a makefile for a library which comes with many samples. There
is a samples subdirectory with the Makefileam looking like this:
SUBDIRS = @SAMPLES_SUBDIRS@
and the SAMPLES_SUBDIRS variables if defined by configure. Each of the
subdirs has its own Makefile.am.
As not all samples will be built, I tried to not generate the makefiles
for those which won't. For this, I constructed a variable holding the
list of all makefiles to be built and used it in AC_OUTPUT(). This works
fine with configure, but automake chokes on it - it can't find
$SAMPLES_MAKEFILES.in :-(
So this approach apparently can't work, but I can't think about anything
else except generating all the makefiles. I'd be grateful for any advices
on how to do it.
Thanks in advance,
VZ