summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-02-20 18:13:55 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-21 20:47:19 -0500
commit9d09411122b9b534b96e988b6d3f6d7eb04b8f66 (patch)
treee1e4febc4a5acf207f0bd1798e2cfe7bc7d1818a /hadrian
parent240f5bf6f53515535be5bf3ef7632aa69ae21e3e (diff)
downloadhaskell-9d09411122b9b534b96e988b6d3f6d7eb04b8f66.tar.gz
Hadrian: `docs` rule needs `configure` (#17840)
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Rules/Documentation.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/hadrian/src/Rules/Documentation.hs b/hadrian/src/Rules/Documentation.hs
index 3b70ce3a18..2afbd87869 100644
--- a/hadrian/src/Rules/Documentation.hs
+++ b/hadrian/src/Rules/Documentation.hs
@@ -85,6 +85,10 @@ documentationRules = do
-- Haddock's manual, and builds man pages
"docs" ~> do
root <- buildRoot
+
+ -- we need to ensure that `configure` has been run (#17840)
+ need [configFile]
+
doctargets <- ghcDocs =<< flavour
let html = htmlRoot -/- "index.html" -- also implies "docs-haddock"
archives = map pathArchive docPaths