summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index be3469a6fc..d918087407 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -651,6 +651,9 @@ endif
ifeq "$(HADDOCK_DOCS)" "YES"
BUILD_DIRS += utils/haddock
BUILD_DIRS += utils/haddock/doc
+else ifeq "$(CLEANING)" "YES"
+BUILD_DIRS += utils/haddock
+BUILD_DIRS += utils/haddock/doc
endif
BUILD_DIRS += compiler