summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/ghc.mk b/ghc.mk
index 595356a93b..bf521b2008 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1380,8 +1380,10 @@ distclean : clean
# Not sure why this is being cleaned here.
$(call removeTrees,includes/dist-derivedconstants)
-# Finally, clean the inplace tree.
- $(call removeTrees,inplace)
+# Also clean Windows-only inplace directories.
+# Don't delete 'inplace' itself, it contains source files.
+ $(call removeTrees,inplace/mingw)
+ $(call removeTrees,inplace/perl)
maintainer-clean : distclean
$(call removeFiles,configure mk/config.h.in)