diff options
author | Tom Yu <tlyu@mit.edu> | 1997-02-27 22:41:58 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 1997-02-27 22:41:58 +0000 |
commit | c6be01c89f708139878eaf72af139b9ea2174a6e (patch) | |
tree | 6ed6cb4d42014c9c2dfd72cda3a01c7adb0f0759 /src/config/post.in | |
parent | dafa86b58ef84517c2cd59c70139e8ee9ec4b4c9 (diff) | |
download | krb5-c6be01c89f708139878eaf72af139b9ea2174a6e.tar.gz krb5-c6be01c89f708139878eaf72af139b9ea2174a6e.tar.xz krb5-c6be01c89f708139878eaf72af139b9ea2174a6e.zip |
* pre.in: Add recursion hooks for distclean
* post.in: Change recursion rules to skip recursion if NORECURSE
is non-null; add distclean support; don't remove config.log,
etc. if not doing distclean.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9985 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config/post.in')
-rw-r--r-- | src/config/post.in | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/config/post.in b/src/config/post.in index 0b1f2b44c..fef53e46e 100644 --- a/src/config/post.in +++ b/src/config/post.in @@ -22,7 +22,6 @@ depend:: .depend else :; fi clean:: clean-$(WHAT) - $(RM) config.log pre.out post.out Makefile.out clean-unix:: if test -n "$(OBJS)" ; then $(RM) $(OBJS); else :; fi @@ -32,6 +31,14 @@ clean-windows:: $(RM) *.$(OBJEXT) $(RM) msvc.pdb *.err +distclean:: distclean-$(WHAT) + +distclean-prerecurse:: + $(MAKE) NORECURSE=true clean + +distclean-postrecurse:: + $(RM) config.log config.cache config.status Makefile + Makefiles-prerecurse:: Makefile Makefile: $(srcdir)/Makefile.in $(thisconfigdir)/config.status \ @@ -46,10 +53,10 @@ $(srcdir)/$(thisconfigdir)/configure: $(srcdir)/$(thisconfigdir)/configure.in \ --localdir=$(BUILDTOP) \ --macrodir=$(BUILDTOP)/util/autoconf -all-recurse clean-recurse install-recurse check-recurse Makefiles-recurse: +all-recurse clean-recurse distclean-recurse install-recurse check-recurse Makefiles-recurse: @case "`echo 'x$(MFLAGS)'|sed -e 's/^x//' -e 's/ --.*$$//'`" \ in *[ik]*) e=:;; *) e="exit 1";; esac; \ - if test -n "$(SUBDIRS)"; then \ + if test -n "$(SUBDIRS)" && test -z "$(NORECURSE)"; then \ for i in . $(SUBDIRS) ; do \ if test -d $$i ; then \ case $$i in .);; *) \ |