Add tools to test that cleaning works properly
[ghc-hetmet.git] / utils / testremove / ghc.mk
diff --git a/utils/testremove/ghc.mk b/utils/testremove/ghc.mk
new file mode 100644 (file)
index 0000000..ac9ef6c
--- /dev/null
@@ -0,0 +1,9 @@
+
+.PHONY: utils/testremove_all
+utils/testremove_all: utils/testremove/wouldrm utils/testremove/checkremove
+
+utils/testremove/wouldrm: $$@.hs
+       $(GHC_STAGE1) --make -O $@
+
+utils/testremove/checkremove: $$@.hs
+       $(GHC_STAGE1) --make -O $@