2001-02-03 Tom Tromey <tromey@redhat.com>
+ * automake.texi (Dist): Updated to mention caveat of putting
+ directory in EXTRA_DIST and also providing a nice example of
+ removing the CVS dir.
+ From Ganesan Rajagopal.
+
* m4/depend.m4 (depcpp): Run tests in a subdir. Fixes report from
Bob Proulx.
the @code{EXTRA_DIST} variable. You can mention files from
subdirectories in @code{EXTRA_DIST}. You can also mention a directory
there; in this case the entire directory will be recursively copied into
-the distribution.
+the distribution. Please note that this will also copy
+@emph{everything} in the directory, including CVS/RCS version control
+files.
+
@vindex EXTRA_DIST
Sometimes you need tighter control over what does @emph{not} go into the
nodist_foo_SOURCES = do-not-distribute.c
@end example
+Another way to to use this is for removing unnecessary files that get
+recursively included by specifying a directory in EXTRA_DIST:
+
+@example
+EXTRA_DIST = doc
+
+dist-hook:
+ rm -rf `find $(distdir)/doc -name CVS`
+@end example
+
If you define @code{SUBDIRS}, Automake will recursively include the
subdirectories in the distribution. If @code{SUBDIRS} is defined
conditionally (@pxref{Conditionals}), Automake will normally include all