We have to run cmake successfully before `make doc`. This means that we need to install everything that cmake requires (ogre, qt, etc.).
It should be possible to `make doc` with just doxygen (and maybe a couple of other things) installed.
Right now, this only matters for the CI job that builds docs, and it doesn't matter very much even there.