summaryrefslogtreecommitdiff
path: root/mk/target.mk
diff options
context:
space:
mode:
authorsimonmar <unknown>2004-12-03 15:35:59 +0000
committersimonmar <unknown>2004-12-03 15:35:59 +0000
commit6f93da743490e6ffeab625b68324eb6f2d93c998 (patch)
treef22698a48eb2bade5b27ebccc52c46d0903272cc /mk/target.mk
parente0ccc77e839b7150a731301046f7488078b241f9 (diff)
downloadhaskell-6f93da743490e6ffeab625b68324eb6f2d93c998.tar.gz
[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.
Diffstat (limited to 'mk/target.mk')
-rw-r--r--mk/target.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/mk/target.mk b/mk/target.mk
index 1f200e05a5..6dead338ea 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)
+