def get_dep_outname(self, inname):
    if (self.depfile is None):
        raise InvalidArguments('Tried to get dep name for rule that does not have dependency file defined.')
    plainname = os.path.basename(inname)
    basename = os.path.splitext(plainname)[0]
    return self.depfile.replace('@BASENAME@', basename).replace('@PLAINNAME@', plainname)
def get_dep_outname(self, inname):
    if (self.depfile is None):
        raise InvalidArguments('Tried to get dep name for rule that does not have dependency file defined.')
    plainname = os.path.basename(inname)
    basename = os.path.splitext(plainname)[0]
    return self.depfile.replace('@BASENAME@', basename).replace('@PLAINNAME@', plainname)