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