diff options
author | Duncan Coutts <duncan@well-typed.com> | 2009-04-29 16:02:30 +0000 |
---|---|---|
committer | Duncan Coutts <duncan@well-typed.com> | 2009-04-29 16:02:30 +0000 |
commit | 5d6bfce45fab55d839748383d97cdd7eba7b809e (patch) | |
tree | 95050a3cabbd8dfb60387c86f77c260d8551b072 /rules | |
parent | f3aea765441184e9a1235dccd8ebc02d2eb4dc5a (diff) | |
download | haskell-5d6bfce45fab55d839748383d97cdd7eba7b809e.tar.gz |
Prevent haddock docs being built when HADDOCK_DOCS=NO
Diffstat (limited to 'rules')
-rw-r--r-- | rules/haddock.mk | 2 |
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)) |