Hadrian: handle Haddock's resource directory
Fixes #16105 (closed)
-
Require Haddock's resource as runtime dependencies of the Haddock builder. This means we no longer have to
need
particular resources in every other documentation rule. -
Do a tracked copy of both the 'html' and 'latex' folder resource folders.
-
Move resources into
stage1/lib
(NB: thehaddock
binary goes instage1/bin
). Besides now actually matching the Haddock script wrapper generated by BinaryDist, this also prepares for Haddock in relocatable build folder detecting its own resources.