]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Fix for maintclean.test:
authorTom Tromey <tromey@redhat.com>
Wed, 16 May 2001 04:32:09 +0000 (04:32 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 16 May 2001 04:32:09 +0000 (04:32 +0000)
* tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
* lib/am/clean.am (distclean-generic): Don't remove config.cache
or config.log.
(distclean, maintainer-clean): Moved to...
* lib/am/configure.am: ... here.
(distclean): Remove config.cache and config.log.
(maintainer-clean): Removed.
(maintainer-clean-conf): New target.
(maintainer-clean-am): New target.

ChangeLog
lib/am/clean.am
lib/am/configure.am
tests/Makefile.am
tests/Makefile.in

index dfbbdd2ad077249ea8cac009f19409337c199607..18528f4a5caa77436eccf3a1b534a44c35ba294e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2001-05-15  Tom Tromey  <tromey@redhat.com>
 
+       Fix for maintclean.test:
+       * tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
+       * lib/am/clean.am (distclean-generic): Don't remove config.cache
+       or config.log.
+       (distclean, maintainer-clean): Moved to...
+       * lib/am/configure.am: ... here.
+       (distclean): Remove config.cache and config.log.
+       (maintainer-clean): Removed.
+       (maintainer-clean-conf): New target.
+       (maintainer-clean-am): New target.
+
        * tests/Makefile.am (TESTS): Added maintclean.test.
        (XFAIL_TESTS): Likewise.
        * tests/maintclean.test: New file.
index 7e4b4161e67c433cf4cdaad7ca20a39a624c939a..74fd23ecbcde1d2781cb9139857155e80163e245 100644 (file)
@@ -29,8 +29,7 @@ clean-generic:
 
 distclean-am: distclean-generic clean-am
 distclean-generic:
-       -rm -f Makefile $(CONFIG_CLEAN_FILES)
-       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
+       -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
 ?DISTCLEAN?    -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
 
 maintainer-clean-am: maintainer-clean-generic distclean-am
@@ -49,15 +48,3 @@ clean-generic mostlyclean-generic distclean-generic maintainer-clean-generic
 ?!SUBDIRS?distclean: distclean-am
 ?!SUBDIRS?mostlyclean: mostlyclean-am
 ?!SUBDIRS?maintainer-clean: maintainer-clean-am
-
-## We special-case config.status here.  If we do it as part of the
-## normal clean processing for this directory, then it might be
-## removed before some subdir is cleaned.  However, that subdir's
-## Makefile depends on config.status.
-
-if %?TOPDIR_P%
-distclean:
-       -rm -f config.status
-maintainer-clean:
-       -rm -f config.status
-endif %?TOPDIR_P%
index bbae72c33dc0452f23fc4252d62ab8189b3a510b..6e93de86e85a25acb0508787427107816ffa28e0 100644 (file)
@@ -66,3 +66,30 @@ $(ACLOCAL_M4): %MAINTAINER-MODE% %CONFIGURE-AC% %ACLOCAL_M4_DEPS%
        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
 endif  %?REGEN-ACLOCAL-M4%
 endif %?TOPDIR_P%
+
+
+## --------- ##
+## cleanup.  ##
+## --------- ##
+
+
+## We special-case config.status here.  If we do it as part of the
+## normal clean processing for this directory, then it might be
+## removed before some subdir is cleaned.  However, that subdir's
+## Makefile depends on config.status.
+
+if %?TOPDIR_P%
+distclean:
+       -rm -f config.status config.cache config.log
+
+maintainer-clean-am: maintainer-clean-conf
+
+if %?REGEN-ACLOCAL-M4%
+maintainer-clean-conf:
+       -rm -f configure aclocal.m4
+else ! %?REGEN-ACLOCAL-M4%
+maintainer-clean-conf:
+       -rm -f configure
+endif ! %?REGEN-ACLOCAL-M4%
+
+endif %?TOPDIR_P%
index 2489e022ce2f62be811709c71050204031d6a2ec..06ebabf30947bd07ace449f865b0887355891c54 100644 (file)
@@ -2,7 +2,7 @@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = subdir5.test maintclean.test
+XFAIL_TESTS = subdir5.test
 
 TESTS =        \
 acinclude.test \
index d9f33b1a112f6e28cb109ba4f06e7f46fb162f73..2c49bd5a75d816ce4cf7518ba81261794a083100 100644 (file)
@@ -70,7 +70,7 @@ install_sh = @install_sh@
 
 AUTOMAKE_OPTIONS = gnits
 
-XFAIL_TESTS = subdir5.test maintclean.test
+XFAIL_TESTS = subdir5.test
 
 TESTS = \
 acinclude.test \
@@ -487,8 +487,7 @@ mostlyclean-generic:
 clean-generic:
 
 distclean-generic:
-       -rm -f Makefile $(CONFIG_CLEAN_FILES)
-       -rm -f config.cache config.log stamp-h stamp-h[0-9]*
+       -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
 
 maintainer-clean-generic:
        @echo "This command is intended for maintainers to use"