summaryrefslogtreecommitdiff
path: root/rules/haddock.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-06-04 08:32:14 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-06-04 08:32:14 +0000
commit5ac6359ebd27b7a84eb63a3ea779d9ce6659ce76 (patch)
tree028f2164a548e782b77ceb8d4d3616729d6ed775 /rules/haddock.mk
parent86ffe1a12f4e8d082d67e585cf4dbdf339781290 (diff)
downloadhaskell-5ac6359ebd27b7a84eb63a3ea779d9ce6659ce76.tar.gz
Pass --no-tmp-comp-dir to Haddock (see comment)
Diffstat (limited to 'rules/haddock.mk')
-rw-r--r--rules/haddock.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk
index 295db94887..00084433a3 100644
--- a/rules/haddock.mk
+++ b/rules/haddock.mk
@@ -44,6 +44,7 @@ ifeq "$$(HSCOLOUR_SRCS)" "YES"
endif
"$$(TOP)/$$(INPLACE_BIN)/haddock" \
--odir="$1/$2/doc/html/$$($1_PACKAGE)" \
+ --no-tmp-comp-dir \
--dump-interface=$$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE) \
--html \
--title="$$($1_PACKAGE)-$$($1_$2_VERSION)$$(if $$(strip $$($1_$2_SYNOPSIS)),: $$(strip $$($1_$2_SYNOPSIS)),)" \
@@ -55,6 +56,12 @@ endif
$$($1_$2_HS_SRCS) \
$$($1_$2_EXTRA_HADDOCK_SRCS)
+# --no-tmp-comp-dir above is important: it saves a few minutes in a
+# validate. This flag lets Haddock use the pre-compiled object files
+# for the package rather than rebuilding the modules of the package in
+# a temporary directory. Haddock needs to build the package when it
+# uses the Template Haskell or Annotations extensions, for example.
+
# Make the haddocking depend on the library .a file, to ensure
# that we wait until the library is fully build before we haddock it
$$($$($1_PACKAGE)_HADDOCK_FILE) : $$($1_$2_v_LIB)