diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-06-30 11:11:37 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-06-30 11:11:37 +0000 |
commit | 5564a292733352343495a977b27e497e81ea58c6 (patch) | |
tree | cdd60015f3ca2d042a747595a2402b0c71f325c9 /rules/haddock.mk | |
parent | 8807bf8fcf1a8b4a53ec63577a349fefd36dfb5f (diff) | |
download | haskell-5564a292733352343495a977b27e497e81ea58c6.tar.gz |
'make html' in a library builds the Haddock docs
Diffstat (limited to 'rules/haddock.mk')
-rw-r--r-- | rules/haddock.mk | 5 |
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" |