def METHOD_NAME(self, name, target):
    """Used by the platform specific subclass to list available targets.
    Raises an error if the platform specifies a name
    that is reserved by spack as an alias.
    """
    if name in Platform.reserved_targets:
        msg = "{0} is a spack reserved alias and cannot be the name of a target"
        raise ValueError(msg.format(name))
    self.targets[name] = target