diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-10-25 18:06:15 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-10-25 18:06:15 +0100 |
commit | f3115bdda03288960d28541562ce3fc8d9b623b8 (patch) | |
tree | cd7fc76fc201ebf87dc5d822f8f09a80fc53de03 | |
parent | 8d8af5eefc018506be8916e11946cd88cb970b81 (diff) | |
download | haskell-f3115bdda03288960d28541562ce3fc8d9b623b8.tar.gz |
Fix the haddocking build system rules when dynamic is the default way
-rw-r--r-- | ghc.mk | 2 | ||||
-rw-r--r-- | rules/haddock.mk | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -187,8 +187,10 @@ $(foreach way,$(ALL_WAYS),\ ifeq "$(DYNAMIC_BY_DEFAULT)" "YES" GHCI_WAY = dyn +HADDOCK_WAY = dyn else GHCI_WAY = v +HADDOCK_WAY = v endif # ----------------------------------------------------------------------------- diff --git a/rules/haddock.mk b/rules/haddock.mk index b5fc63f5e6..4dabe3c71f 100644 --- a/rules/haddock.mk +++ b/rules/haddock.mk @@ -33,7 +33,7 @@ endif .PHONY: html_$1 html_$1 : $$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE) -$$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_DEPS = $$(foreach n,$$($1_$2_DEPS),$$($$n_HADDOCK_FILE) $$($$n_dist-install_v_LIB)) +$$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_DEPS = $$(foreach n,$$($1_$2_DEPS),$$($$n_HADDOCK_FILE) $$($$n_dist-install_$$(HADDOCK_WAY)_LIB)) ifeq "$$(HSCOLOUR_SRCS)" "YES" $1_$2_HADDOCK_FLAGS += --source-module=src/%{MODULE/./-}.html --source-entity=src/%{MODULE/./-}.html\#%{NAME} @@ -54,7 +54,7 @@ endif --prologue="$1/$2/haddock-prologue.txt" \ $$(foreach mod,$$($1_$2_HIDDEN_MODULES),--hide=$$(mod)) \ $$(foreach pkg,$$($1_$2_DEPS),$$(if $$($$(pkg)_HADDOCK_FILE),--read-interface=../$$(pkg)$$(comma)../$$(pkg)/src/%{MODULE/./-}.html\#%{NAME}$$(comma)$$($$(pkg)_HADDOCK_FILE))) \ - $$(foreach opt,$$($1_$2_v_ALL_HC_OPTS),--optghc=$$(opt)) \ + $$(foreach opt,$$($1_$2_$$(HADDOCK_WAY)_ALL_HC_OPTS),--optghc=$$(opt)) \ $$($1_$2_HADDOCK_FLAGS) $$($1_$2_HADDOCK_OPTS) \ $$($1_$2_HS_SRCS) \ $$($1_$2_EXTRA_HADDOCK_SRCS) \ @@ -68,7 +68,7 @@ endif # Make the haddocking depend on the library .a file, to ensure # that we wait until the library is fully built before we haddock it -$$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE) : $$($1_$2_v_LIB) +$$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE) : $$($1_$2_$$(HADDOCK_WAY)_LIB) endif endif |