aboutsummaryrefslogtreecommitdiff
path: root/doc/ghc.mk
blob: 02839fe87d2229da13cffa9626ca9371d1d74d9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -----------------------------------------------------------------------------
#
# (c) 2009 The University of Glasgow
#
# This file is part of the GHC build system.
#
# To understand how the build system works and how to modify it, see
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
#
# -----------------------------------------------------------------------------

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-*))
endif

html_utils/haddock/doc :
	make -C utils/haddock/doc html SPHINX_BUILD=$(SPHINXBUILD)
	cp -R utils/haddock/doc/.build-html utils/haddock/doc/haddock