With dev build the source will be installed, for normal builds, the src isn't installed and html won't be built so it cannot be installed.
Perhaps a fix can be added to delete entirely the doc/src folder for **dev build** without doc.