summaryrefslogtreecommitdiff
path: root/rules/haddock.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-06-30 11:11:37 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-06-30 11:11:37 +0000
commit5564a292733352343495a977b27e497e81ea58c6 (patch)
treecdd60015f3ca2d042a747595a2402b0c71f325c9 /rules/haddock.mk
parent8807bf8fcf1a8b4a53ec63577a349fefd36dfb5f (diff)
downloadhaskell-5564a292733352343495a977b27e497e81ea58c6.tar.gz
'make html' in a library builds the Haddock docs
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"