Add ".PRECIOUS: %/."
[ghc-hetmet.git] / ghc.mk
diff --git a/ghc.mk b/ghc.mk
index 8f2737d..5b0f604 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -405,6 +405,9 @@ endif
 # -----------------------------------------------------------------------------
 # Directories
 
+# Don't try to delete directories:
+.PRECIOUS: %/.
+
 %/. : $(MKDIRHIER)
        "$(MKDIRHIER)" $@