+Mon Apr 7 17:40:18 1997 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (AM_INIT_AUTOMAKE_PATTERN): Fixed for new 3rd arg.
+ Test version2.test.
+
Thu Apr 3 19:07:59 1997 Tom Tromey <tromey@cygnus.com>
* Released 1.1n.
TEXINFO_TEX
-SUBDIR entry must be direct subdir of this dir
-
-C++ -vs- yacc/lex
-
multi-":" mode in AC_OUTPUT -- automake only looks at the first file
also a note on how a .am file is found in this case
must document the targets required for integration with
non-automake-using subdirs
-use of (eg) EXTRA_PROGRAMS is not very clear right now
-document EXTRA_foo_SOURCES
-document why EXTRA_* vars must be statically knowable
-
document the "make SHELL='/bin/sh -x'" trick for debugging
section on relationship to GNU make
# Some regular expressions. One reason to put them here is that it
# makes indentation work better in Emacs.
$AC_CONFIG_AUX_DIR_PATTERN = "AC_CONFIG_AUX_DIR\\(([^)]+)\\)";
-$AM_INIT_AUTOMAKE_PATTERN = "AM_INIT_AUTOMAKE\\([^,]*,([^)]+)\\)";
+$AM_INIT_AUTOMAKE_PATTERN = "AM_INIT_AUTOMAKE\\([^,]*,([^,)]+)[,)]";
$AM_PACKAGE_VERSION_PATTERN = "^\\s*\\[?([^]\\s]+)\\]?\\s*\$";
# Note that there is no AC_PATH_TOOL. But we don't really care.
$AC_CHECK_PATTERN = "AC_(CHECK|PATH)_(PROG|PROGS|TOOL)\\(\\[?(\\w+)";
subdirectories. Note that the directories listed in @code{SUBDIRS} are
not required to contain @file{Makefile.am}s; only @file{Makefile}s
(after configuration). This allows inclusion of libraries from packages
-which do not use Automake (such as @code{gettext}).
+which do not use Automake (such as @code{gettext}). The directories
+mentioned in @code{SUBDIRS} must be direct children of the current
+directory. For instance, you cannot put @samp{src/subdir} into
+@code{SUBDIRS}.
In a deep package, the top-level @file{Makefile.am} is often very short.
For instance, here is the @file{Makefile.am} from the Hello
(@samp{.l}) and yacc (@samp{.y}) files can also be listed; see @ref{Yacc
and Lex}.
-Sometimes it is useful to determine the programs that are to be built at
-configure time. For instance, GNU @code{cpio} only builds @code{mt} and
-@code{rmt} under special circumstances.
+Automake must know all the source files that could possibly go into a
+program, even if not all the files are built in every circumstance.
+Any files which are only conditionally built should be listed in the
+appropriate @samp{EXTRA_} variable. For instance, if
+@file{hello-linux.c} were conditionally included in @code{hello}, the
+@file{Makefile.am} would contain:
+
+@example
+EXTRA_hello_SOURCES = hello-linux.c
+@end example
+
+Similarly, sometimes it is useful to determine the programs that are to
+be built at configure time. For instance, GNU @code{cpio} only builds
+@code{mt} and @code{rmt} under special circumstances.
In this case, you must notify @code{automake} of all the programs that
can possibly be built, but at the same time cause the generated
-@set UPDATED 3 April 1997
+@set UPDATED 4 April 1997
@set EDITION 1.1n
@set VERSION 1.1n
+Mon Apr 7 17:35:49 1997 Tom Tromey <tromey@cygnus.com>
+
+ * version2.test: New file.
+
Wed Apr 2 00:12:26 1997 Tom Tromey <tromey@cygnus.com>
* ldadd.test: New file.
remake2.test output3.test output4.test colneq2.test subst.test \
defun2.test yaccpp.test texinfo3.test texinfo4.test tagsub.test \
cxxlibobj.test seenc.test cygwin32.test lisp.test stamph.test \
-ldadd.test
+ldadd.test version2.test
EXTRA_DIST = defs $(TESTS)
remake2.test output3.test output4.test colneq2.test subst.test \
defun2.test yaccpp.test texinfo3.test texinfo4.test tagsub.test \
cxxlibobj.test seenc.test cygwin32.test lisp.test stamph.test \
-ldadd.test
+ldadd.test version2.test
EXTRA_DIST = defs $(TESTS)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
--- /dev/null
+#! /bin/sh
+
+# Test to make sure 3rd arg to AM_INIT_AUTOMAKE not picked up in
+# version. From Joel Weber.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AM_INIT_AUTOMAKE([sh-utils], 1.12o, no)
+AC_OUTPUT(Makefile)
+END
+
+: > Makefile.am
+
+# Files required by Gnits.
+: > INSTALL
+: > NEWS
+: > README
+: > COPYING
+: > AUTHORS
+: > ChangeLog
+: > THANKS
+
+$AUTOMAKE --gnits
-@set UPDATED 3 April 1997
+@set UPDATED 4 April 1997
@set EDITION 1.1n
@set VERSION 1.1n