def resolve_dependency_graph(self, target):
        """ resolves the build order for interdependent build targets

            Assumes no cyclic dependencies
        """
        targets = self.deep_dependendants(target)
        # print "deep dependants:", targets
        return sorted(targets,
                      cmp=lambda a, b:
                          1 if b in self.deep_dependendants(a) else
                          -1 if a in self.deep_dependendants(b) else
                          0)