def cleanMakerChain(project, out, maker, sources):
    targets = sources

    while maker.previousMaker:
        maker = maker.previousMaker

    while maker:
        targets = cleanMaker(project, out, maker, targets)
        if targets == None:
            break

        maker = maker.nextMaker
    
    return targets
dataset/ETHPy150Open joehewitt/devon/devon/make.py/cleanMakerChain/original