summaryrefslogtreecommitdiff
path: root/rules/haddock.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules/haddock.mk')
-rw-r--r--rules/haddock.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk
index 67286f5820..6269612f53 100644
--- a/rules/haddock.mk
+++ b/rules/haddock.mk
@@ -24,9 +24,12 @@ endif
haddock: $$($$($1_PACKAGE)_HADDOCK_FILE)
ifeq "$$(HADDOCK_DOCS)" "YES"
-$(call all-target,$1_$2_haddock,$$($$($1_PACKAGE)_HADDOCK_FILE))
+$(call all-target,$1_$2_haddock,html_$1)
endif
+.PHONY: html_$1
+html_$1 : $$($$($1_PACKAGE)_HADDOCK_FILE)
+
$$($1_PACKAGE)_HADDOCK_DEPS = $$(foreach n,$$($1_$2_DEP_NAMES),$$($$n_HADDOCK_FILE))
ifeq "$$(HSCOLOUR_SRCS)" "YES"