Use build_doc.py to handle the doc generation for extra modules

Generate docs when the corresponding src package for the given
extra module is being created.

Change-Id: I59c1035fa2b71492589c23bd614efb5b41530684
Reviewed-by: Antti Kokko <antti.kokko@digia.com>