Commit 75edf8d7 authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

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 624eb0fc)
parent b769f834
......@@ -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)" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment