aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/ghc.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/ghc.mk b/doc/ghc.mk
index 590d1c5f..3e53168e 100644
--- a/doc/ghc.mk
+++ b/doc/ghc.mk
@@ -11,9 +11,11 @@
# -----------------------------------------------------------------------------
ifeq "$(BUILD_SPHINX_HTML)" "YES"
-INSTALL_HTML_DOC_DIRS += utils/haddock/doc/haddock
-
html : html_utils/haddock/doc
+
+$(eval $(call clean-target,utils/haddock/doc,sphinx,utils/haddock/doc/haddock utils/haddock/doc/.build-html utils/haddock/doc/.build-pdf))
+$(eval $(call all-target,utils/haddock/doc,html_utils/haddock/doc))
+INSTALL_HTML_DOC_DIRS += utils/haddock/doc/haddock
endif
html_utils/haddock/doc :