Commit c6660342 authored by kili's avatar kili

Don't build haddock if HADDOC_DOCS = NO, and disable HADDOC_DOCS if GhcWithInterpreter = NO

Haddock uses TcRnDriver.tcRnGetInfo, which is only available if
GHCI is built. Set HADDOC_DOCS to NO if GhcWithInterpreter is NO,
and disable the haddock build if HADDOC_DOCS = NO.
parent 0b00750f
......@@ -493,9 +493,11 @@ BUILD_DIRS += \
$(GHC_GENAPPLY_DIR)
endif
ifneq "$(HADDOCK_DOCS)" "NO"
BUILD_DIRS += \
utils/haddock \
utils/haddock/doc
endif
ifneq "$(CLEANING)" "YES"
BUILD_DIRS += \
......
......@@ -740,7 +740,7 @@ SRC_ALEX_OPTS = -g
HSTAGS = @HstagsCmd@
# Should we build haddock docs?
HADDOCK_DOCS = YES
HADDOCK_DOCS = $(GhcWithInterpreter)
# And HsColour the sources?
ifeq "$(HSCOLOUR)" ""
HSCOLOUR_SRCS = NO
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment