Transform amd modules with dependencies