projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
630cff0
)
Add a way to show what cleaning would be done, without actually doing it
author
Ian Lynagh
<igloo@earth.li>
Sat, 8 May 2010 12:24:38 +0000
(12:24 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 8 May 2010 12:24:38 +0000
(12:24 +0000)
mk/tree.mk
patch
|
blob
|
history
diff --git
a/mk/tree.mk
b/mk/tree.mk
index
eaeb9bc
..
639b93b
100644
(file)
--- 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:
# 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
RM = rm
RM_OPTS = -f
RM_OPTS_REC = -rf
+endif