+Thu Feb 27 17:40:51 1997 Tom Yu <tlyu@mit.edu>
+
+ * 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.
+
Sat Feb 22 18:42:32 1997 Richard Basch <basch@lehman.com>
* win-post.in: Move library list file rule from various
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
$(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 \
--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 .);; *) \
clean-prerecurse::
clean-postrecurse::
+distclean-unix:: distclean-prerecurse
+distclean-unix:: distclean-recurse
+distclean-unix:: distclean-postrecurse
+
install-unix:: install-prerecurse
install-unix:: install-recurse
install-unix:: install-postrecurse