summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-02 15:55:53 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-03 12:17:34 -0400
commit1357d02380641ba33b05eb87c80e6a4250cd4a3b (patch)
tree898e54d99597187012248a8d3e9548d7afd843b5
parentd0924b153b093a925c9e721f2540f3dfd6c278ae (diff)
downloadhaskell-1357d02380641ba33b05eb87c80e6a4250cd4a3b.tar.gz
rules/haddock: Ensure that RTS stats directory exists
It may not exist if the source tarball was extracted yet not the testsuite tarball.
-rw-r--r--rules/haddock.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk
index a0e4f1724a..e624e4afb1 100644
--- a/rules/haddock.mk
+++ b/rules/haddock.mk
@@ -58,6 +58,8 @@ $$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE) : $$$$(haddock_INPLACE) $$$$(g
ifeq "$$(HSCOLOUR_SRCS)" "YES"
"$$(ghc-cabal_INPLACE)" hscolour $1 $2
endif
+ # N.B. in a source tree from tarball the testsuite/ directory may not exist
+ mkdir -p $$(TOP)/testsuite/tests/perf/haddock
"$$(TOP)/$$(INPLACE_BIN)/haddock" \
--verbosity=0 \
--odir="$1/$2/doc/html/$$($1_PACKAGE)" \