summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2009-04-29 16:02:30 +0000
committerDuncan Coutts <duncan@well-typed.com>2009-04-29 16:02:30 +0000
commit5d6bfce45fab55d839748383d97cdd7eba7b809e (patch)
tree95050a3cabbd8dfb60387c86f77c260d8551b072 /rules
parentf3aea765441184e9a1235dccd8ebc02d2eb4dc5a (diff)
downloadhaskell-5d6bfce45fab55d839748383d97cdd7eba7b809e.tar.gz
Prevent haddock docs being built when HADDOCK_DOCS=NO
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 2bd8cfc83b..8c5f00ac4c 100644
--- a/rules/haddock.mk
+++ b/rules/haddock.mk
@@ -21,7 +21,9 @@ else
$$(error Already got a haddock file for $$($1_PACKAGE))
endif
+ifeq "HADDOCK_DOCS" "YES"
$(call all-target,$1_$2_haddock,$$($$($1_PACKAGE)_HADDOCK_FILE))
+endif
$$($1_PACKAGE)_HADDOCK_DEPS = $$(foreach n,$$($1_$2_DEP_NAMES),$$($$n_HADDOCK_FILE))