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.
$(GHC_GENAPPLY_DIR)
endif
+ifneq "$(HADDOCK_DOCS)" "NO"
BUILD_DIRS += \
utils/haddock \
utils/haddock/doc
+endif
ifneq "$(CLEANING)" "YES"
BUILD_DIRS += \
HSTAGS = @HstagsCmd@
# Should we build haddock docs?
-HADDOCK_DOCS = YES
+HADDOCK_DOCS = $(GhcWithInterpreter)
# And HsColour the sources?
ifeq "$(HSCOLOUR)" ""
HSCOLOUR_SRCS = NO