summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-02 15:55:53 -0400
committerBen Gamari <ben@smart-cactus.org>2019-11-03 15:24:32 -0500
commitc3fd844cd3547731f5d7e08f68e9bfc1330c642c (patch)
tree0114176bf31438b6a31e9b7d3151673a84e3cfc8
parent900fce4e2c3cd31083e8886b86bd9af4ff8fa26d (diff)
downloadhaskell-c3fd844cd3547731f5d7e08f68e9bfc1330c642c.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. (cherry picked from commit 624eb0fca63e49694e93df37a616d2162b8ded13)
-rw-r--r--rules/haddock.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk
index 37182bcbe6..2d74a8a127 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)" \