+2004-01-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
+
+ * doc/automake.texi (Dist): Document limitations of distcheck-hook
+ and DISTCHECK_CONFIGURE_FLAGS with regard to subdirs and
+ subpackages.
+
2004-01-20 Alexandre Duret-Lutz <adl@gnu.org>
* doc/automake.texi (Upgrading): New node.
@file{Makefile.am}, or on the command line when invoking @code{make}.
@vindex DISTCHECK_CONFIGURE_FLAGS
-If the @code{distcheck-hook} rule is defined in your
+If the @code{distcheck-hook} rule is defined in your top-level
@file{Makefile.am}, then it will be invoked by @code{distcheck} after
the new distribution has been unpacked, but before the unpacked copy
is configured and built. Your @code{distcheck-hook} can do almost
anything, though as always caution is advised. Generally this hook is
used to check for potential distribution errors not caught by the
-standard mechanism.
+standard mechanism. Note that @code{distcheck-hook} as well as
+@code{DISTCHECK_CONFIGURE_FLAGS} are not honored in a subpackage
+@file{Makefile.am}, but the @code{DISTCHECK_CONFIGURE_FLAGS} are
+passed down to the @code{configure} script of the subpackage.
+
Speaking about potential distribution errors, @code{distcheck} will also
ensure that the @code{distclean} rule actually removes all built