Added support for 'sources' construct, so multiple target packages generated.