aboutsummaryrefslogtreecommitdiff
path: root/doc/ghc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ghc.mk')
-rw-r--r--doc/ghc.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/ghc.mk b/doc/ghc.mk
index 73d6b7f0..ca639574 100644
--- a/doc/ghc.mk
+++ b/doc/ghc.mk
@@ -10,6 +10,13 @@
#
# -----------------------------------------------------------------------------
-utils/haddock/doc_DOCBOOK_SOURCES = utils/haddock/doc/haddock.xml
+ifeq "$$(BUILD_SPHINX_HTML)" "YES"
+INSTALL_HTML_DOC_DIRS += utils/haddock/doc/haddock
+endif
+
+html : html_utils/haddock/doc
+
+html_utils/haddock/doc :
+ make -C utils/haddock/doc html SPHINX_BUILD=$(SPHINXBUILD)
+ cp -R utils/haddock/doc/.build-html utils/haddock/doc/haddock
-$(eval $(call docbook,utils/haddock/doc,haddock))