summaryrefslogtreecommitdiff
path: root/mk/tree.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-05-08 12:24:38 +0000
committerIan Lynagh <igloo@earth.li>2010-05-08 12:24:38 +0000
commit0a6f3373bae8c59a61ca8a2f2852e5828fd044cd (patch)
treee68c8d7632a129f9ef0fb03905677b823b1aae30 /mk/tree.mk
parent630cff0df4289e44404428ec679777cd422273bb (diff)
downloadhaskell-0a6f3373bae8c59a61ca8a2f2852e5828fd044cd.tar.gz
Add a way to show what cleaning would be done, without actually doing it
Diffstat (limited to 'mk/tree.mk')
-rw-r--r--mk/tree.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/tree.mk b/mk/tree.mk
index eaeb9bc24d..639b93bd9b 100644
--- a/mk/tree.mk
+++ b/mk/tree.mk
@@ -50,7 +50,13 @@ INPLACE_PERL = $(INPLACE)/perl
# These are here, rather than in config.mk, as they need to exist in an
# unconfigured tree so that the various clean targets can be used
# without configuring:
+ifeq "$(ONLY_SHOW_CLEANS)" "YES"
+RM = echo
+RM_OPTS = CLEAN_FILES
+RM_OPTS_REC = CLEAN_REC
+else
RM = rm
RM_OPTS = -f
RM_OPTS_REC = -rf
+endif