Move some make variables around so they are available when cleaning
[ghc-hetmet.git] / mk / tree.mk
index eaeb9bc..3aa8527 100644 (file)
@@ -47,10 +47,31 @@ INPLACE_TOPDIR          = $(INPLACE)/lib
 INPLACE_MINGW           = $(INPLACE)/mingw
 INPLACE_PERL            = $(INPLACE)/perl
 
+################################################################################
+#
+#    Bindist testing directory
+#
+################################################################################
+
+BIN_DIST_INST_SUBDIR = "install dir"
+BIN_DIST_INST_DIR = bindisttest/$(BIN_DIST_INST_SUBDIR)
+
+################################################################################
+#
+#    rm
+#
+################################################################################
+
 # 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 = utils/testremove/wouldrm
+RM_OPTS = CLEAN_FILES
+RM_OPTS_REC = CLEAN_REC
+else
 RM = rm
 RM_OPTS = -f
 RM_OPTS_REC = -rf
+endif