diff options
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% |