Tells if a main target with the specified name exists.

def has_main_target (self, name):
        """Tells if a main target with the specified name exists."""
        assert isinstance(name, basestring)
        if not self.built_main_targets_:
            self.build_main_targets()

        return name in self.main_target_