]> sourceware.org Git - automake.git/commitdiff
* subdirs.am (maintainer-clean-recursive): Use DIST_SUBDIRS for
authorTom Tromey <tromey@redhat.com>
Sat, 23 Dec 2000 20:26:10 +0000 (20:26 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 23 Dec 2000 20:26:10 +0000 (20:26 +0000)
distclean and maintainer-clean.
* automake.texi (Top level): Document use of DIST_SUBDIRS.

ChangeLog
automake.texi
lib/am/subdirs.am
stamp-vti
subdirs.am
version.texi

index 653c86e3bb24dde9690adbfe1a2eda83510b2687..a8d71d1be0ee0f06dc062ab6dea8ca9d50fb23bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-12-23  Tom Tromey  <tromey@redhat.com>
 
+       * subdirs.am (maintainer-clean-recursive): Use DIST_SUBDIRS for
+       distclean and maintainer-clean.
+       * automake.texi (Top level): Document use of DIST_SUBDIRS.
+
        From Rusty Ballinger:
        * automake.in (handle_java): Don't skip `noinst' prefix.
 
index e21d7d2b9873edef01863a9b66d5814b876ee51e..221199b4b2825d24d8af4eb46359014df3240dd5 100644 (file)
@@ -1445,6 +1445,14 @@ can do this by putting @samp{.} into @code{SUBDIRS}.  For instance,
 putting @samp{.}  first will cause a @samp{prefix} ordering of
 directories.
 
+Sometimes, such as when running @code{make dist}, you want all possible
+subdirectories to be examined.  In this case Automake will use
+@code{DIST_SUBDIRS}, instead of @code{SUBDIRS}, to determine where to
+recurse.  This variable will also be used when the user runs
+@code{distclean} or @code{maintainer-clean}.  It should be set to the
+full list of subdirectories in the project.  If this macro is not set,
+Automake will attempt to set it for you.
+
 
 @node Programs, Other objects, Top level, Top
 @chapter Building Programs and Libraries
index adb3672624d8bcd639feb677eacb8ec65e4e38e2..b6f80ab6314741ea0b6fde2418e37163bfd102ec 100644 (file)
@@ -56,7 +56,15 @@ mostlyclean-recursive clean-recursive distclean-recursive \
 maintainer-clean-recursive:
        @set fnord $(MAKEFLAGS); amf=$$2; \
        dot_seen=no; \
-       rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
+## For distclean and maintainer-clean we make sure to use the full
+## list of subdirectories.  We do this so that `configure; make
+## distclean' really is a no-op, even if SUBDIRS is conditional.  For
+## other clean targets this doesn't matter.
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       rev=''; for subdir in $$list; do \
          if test "$$subdir" = "."; then :; else \
            rev="$$subdir $$rev"; \
          fi; \
index ba02ac6dbcf4407ca565239741cec590bee8cc04..a4d9ab6a94542d0c1fb2aef6ae5393f01cbe2536 100644 (file)
--- a/stamp-vti
+++ b/stamp-vti
@@ -1,4 +1,4 @@
-@set UPDATED 21 December 2000
+@set UPDATED 23 December 2000
 @set UPDATED-MONTH December 2000
 @set EDITION 1.4a
 @set VERSION 1.4a
index adb3672624d8bcd639feb677eacb8ec65e4e38e2..b6f80ab6314741ea0b6fde2418e37163bfd102ec 100644 (file)
@@ -56,7 +56,15 @@ mostlyclean-recursive clean-recursive distclean-recursive \
 maintainer-clean-recursive:
        @set fnord $(MAKEFLAGS); amf=$$2; \
        dot_seen=no; \
-       rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
+## For distclean and maintainer-clean we make sure to use the full
+## list of subdirectories.  We do this so that `configure; make
+## distclean' really is a no-op, even if SUBDIRS is conditional.  For
+## other clean targets this doesn't matter.
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       rev=''; for subdir in $$list; do \
          if test "$$subdir" = "."; then :; else \
            rev="$$subdir $$rev"; \
          fi; \
index ba02ac6dbcf4407ca565239741cec590bee8cc04..a4d9ab6a94542d0c1fb2aef6ae5393f01cbe2536 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 21 December 2000
+@set UPDATED 23 December 2000
 @set UPDATED-MONTH December 2000
 @set EDITION 1.4a
 @set VERSION 1.4a
This page took 0.038264 seconds and 5 git commands to generate.