From: simonmar Date: Fri, 3 Dec 2004 15:35:59 +0000 (+0000) Subject: [project @ 2004-12-03 15:35:56 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1363 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=6f93da743490e6ffeab625b68324eb6f2d93c998;p=ghc-hetmet.git [project @ 2004-12-03 15:35:56 by simonmar] distclean: clean config.mk only *after* doing the recursive cleaning. Otherwise we don't clean properly in the subdirectories or sub-ways. --- diff --git a/mk/target.mk b/mk/target.mk index 1f200e0..6dead33 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -1194,3 +1194,17 @@ ifneq "$(SUBDIRS)" "" $(SUBDIRS) :: $(MAKE) -C $@ $(MFLAGS) endif + +# ----------------------------------------------------------------------------- +# Further cleaning + +# Sometimes we want to clean things only after the recursve cleaning +# has heppened (eg. if the files we're about to remove would affect +# the recursive traversal). + +distclean:: + rm -f $(LATE_DIST_CLEAN_FILES) + +maintainer-clean:: + rm -f $(LATE_DIST_CLEAN_FILES) +