mandoc needs to reference makewhatis not man -w
When the integration of mandoc was done originally, the macro BINM_MAKEWHATIS did not exist.
Now it does, and it refers to "man -w". But the reference for it tries to have the notion of creating a man database so this should reference an actual executable.
Historically the idea is that this was going to be makewhatis, which should create an indexing database for man.
However, /usr/lib/makewhatis is a program designed for Sun manual databases, that are far simpler. (The whatis file).
It might be worth considering updating the makewhatis program to be a link to mandoc, and to having man use the new file format.
Alternatively we could deliver mandocdb as an alias.
Having this is useful because mandoc -Tlint complains if it doesn't find a useful index.
No data to display