+1999-04-20 Tom Tromey <tromey@cygnus.com>
+
+ * automake.texi (Top level): Don't recommend substing SUBDIRS.
+
1999-04-20 Brian Ford <ford@vss.fsi.com>
* scripts.am: Change else if's to elif.
entire package. In your @file{Makefile.am} include:
@example
-SUBDIRS = @@SUBDIRS@@
+SUBDIRS = @@MY_SUBDIRS@@
@end example
Then in your @file{configure.in} you can specify:
@example
-SUBDIRS = "src doc lib po"
-AC_SUBST(SUBDIRS)
+MY_SUBDIRS = "src doc lib po"
+AC_SUBST(MY_SUBDIRS)
@end example
+(Note that we don't use the variable name @code{SUBDIRS} in our
+@file{configure.in}; that would cause Automake to believe that every
+@file{Makefile.in} should recurse into the listed subdirectories.)
+
The upshot of this is that Automake is tricked into building the package
to take the subdirs, but doesn't actually bind that list until
@code{configure} is run.
libcpio_a_LIBADD = @@LIBOBJS@@ @@ALLOCA@@
@end example
+In addition, sources for extra objects that will not exist until
+configure-time must be added to the @code{BUILT_SOURCES} variable
+(@pxref{Sources}).
+
@node LIBOBJS, A Shared Library, A Library, Programs
@section Special handling for LIBOBJS and ALLOCA