summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorHarendra Kumar <harendra.kumar@gmail.com>2016-08-25 20:28:29 -0400
committerBen Gamari <ben@smart-cactus.org>2016-08-25 20:28:30 -0400
commit1083f453dd296d4336899893518c65ae5113dc3e (patch)
treee3ba6f03b2347f5efce73e264093db550a2ba953 /ghc.mk
parentfaaf31398110610a0f7068ca13d798d1ac21e02e (diff)
downloadhaskell-1083f453dd296d4336899893518c65ae5113dc3e.tar.gz
Fix doc build inconsistency
Remove the doc targets completely not partially when disabled. Otherwise even though we are able to build the targets but we will see some strange errors. Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2470
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index be480c95bf..792bd21ffd 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -712,6 +712,7 @@ BUILD_DIRS := $(filter-out utils/haddock,$(BUILD_DIRS))
BUILD_DIRS := $(filter-out utils/haddock/doc,$(BUILD_DIRS))
endif
ifeq "$(BUILD_SPHINX_HTML) $(BUILD_SPHINX_PDF)" "NO NO"
+BUILD_DIRS := $(filter-out docs/users_guide,$(BUILD_DIRS))
# Don't to build this little utility if we're not building the User's Guide.
BUILD_DIRS := $(filter-out utils/mkUserGuidePart,$(BUILD_DIRS))
endif