summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-11-17 15:11:23 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-11-17 15:11:23 +0000
commit8922301b49af279289c3dbfc489ff091d6a3688c (patch)
treeae9a00c2465b5efb3f795baea1637a24136bb52f /rules
parent20f0cead360b5192554cc20ab4dd93da47fddd40 (diff)
downloadhaskell-8922301b49af279289c3dbfc489ff091d6a3688c.tar.gz
exclude some haddock-related rules during BINDIST
Diffstat (limited to 'rules')
-rw-r--r--rules/haddock.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk
index 5e5b2f25ac..98838c969b 100644
--- a/rules/haddock.mk
+++ b/rules/haddock.mk
@@ -37,12 +37,14 @@ ifeq "$$(HSCOLOUR_SRCS)" "YES"
$1_$2_HADDOCK_FLAGS += --hyperlink-source
endif
+ifneq "$$(BINDIST)" "YES"
$$($$($1_PACKAGE)_HADDOCK_FILE) : $$(INPLACE_BIN)/haddock$$(exeext) $$(GHC_CABAL_INPLACE) $$($1_$2_HS_SRCS) $$($$($1_PACKAGE)_HADDOCK_DEPS) | $$$$(dir $$$$@)/.
"$$(GHC_CABAL_INPLACE)" haddock $2 $1 --with-haddock=$$(TOP)/$$(INPLACE_BIN)/haddock --with-ghc=$$(TOP)/$$(INPLACE_BIN)/ghc-stage2 $$($1_$2_HADDOCK_FLAGS) $$($1_$2_HADDOCK_OPTS)
# Make the haddocking depend on the library .a file, to ensure
# that we wait until the library is fully build before we haddock it
$$($$($1_PACKAGE)_HADDOCK_FILE) : $$($1_$2_v_LIB)
+endif
endif