Generate dependencies for the given namespace

It generates only the dependencies for the namespace, not the dependencies'
dependencies.