generalise buildTarget
moved DependantPackages into gogo