build: make the 'doc' target generic
Version 4.7.1