diff options
author | Tom Tromey <tromey@redhat.com> | 2001-05-16 04:32:09 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2001-05-16 04:32:09 +0000 |
commit | e00a98988aaa7670a5f3822feb328c8a71ba37cb (patch) | |
tree | d3d9b27a5d4d22a9d721a6e609ba7e4cfd177b38 /lib/am/configure.am | |
parent | b459ff3b151a8fd0e92dc960065ed977bde9dea7 (diff) | |
download | automake-e00a98988aaa7670a5f3822feb328c8a71ba37cb.tar.gz |
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.
Diffstat (limited to 'lib/am/configure.am')
-rw-r--r-- | lib/am/configure.am | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/am/configure.am b/lib/am/configure.am index bbae72c33..6e93de86e 100644 --- a/lib/am/configure.am +++ b/lib/am/configure.am @@ -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% |