When haddocking, we need the dependencies to have been built
authorIan Lynagh <igloo@earth.li>
Tue, 25 May 2010 14:58:30 +0000 (14:58 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 25 May 2010 14:58:30 +0000 (14:58 +0000)
as haddock loads the .hi files with the GHC API.

rules/haddock.mk

index 10537a7..676c533 100644 (file)
@@ -31,7 +31,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))
+$$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_DEPS = $$(foreach n,$$($1_$2_DEPS),$$($$n_HADDOCK_FILE) $$($$n_dist-install_v_LIB))
 
 ifeq "$$(HSCOLOUR_SRCS)" "YES"
 $1_$2_HADDOCK_FLAGS += --source-module=src/%{MODULE/./-}.html --source-entity=src/%{MODULE/./-}.html#%{NAME}