Closes #23548 (closed).
Awkwardly, this results in a $datadir/doc
installation directory which contains two similarly-named subdirectories (one having a target double, the other not):
$ hu -j9 binary-dist-dir
$ (cd _build/bindist/ghc-9.8.0.20230914-x86_64-unknown-linux/; ./configure --prefix=`pwd`/root; make install)
$ ls _build/bindist/ghc-9.8.0.20230914-x86_64-unknown-linux/root/share/doc/
ghc-9.8.0.20230914 x86_64-linux-ghc-9.8.0.20230914
$ tree _build/bindist/ghc-9.8.0.20230914-x86_64-unknown-linux/root/share/ -L 4
_build/bindist/ghc-9.8.0.20230914-x86_64-unknown-linux/root/share/
├── doc
│ ├── ghc-9.8.0.20230914
│ │ ├── archives
│ │ │ ├── Haddock.html.tar.xz
│ │ │ ├── libraries.html.tar.xz
│ │ │ └── users_guide.html.tar.xz
│ │ ├── Haddock.pdf
│ │ ├── html
│ │ │ ├── Haddock
│ │ │ ├── index.html
│ │ │ ├── libraries
│ │ │ └── users_guide
│ │ └── users_guide.pdf
│ └── x86_64-linux-ghc-9.8.0.20230914
│ ├── array-0.5.6.0
│ │ └── LICENSE
│ ├── base-4.19.0.0
│ │ └── LICENSE
│ ├── binary-0.8.9.1
│ │ └── LICENSE
│ ├── bytestring-0.12.0.2
│ │ └── LICENSE
│ ├── Cabal-3.10.2.0
│ .
│ .
│ .
│ ├── unix-2.8.2.1
│ │ └── LICENSE
│ └── xhtml-3000.2.2.1
│ └── LICENSE
└── man
└── man1
└── ghc.1