

def run_clean(fips_dir, build_dir):
    'run cmake in build mode\n\n    :param build_dir:   path to the build directory\n    :returns:           True if cmake returns successful    \n    '
    try:
        res = subprocess.call('cmake --build . --target clean', cwd=build_dir, shell=True)
        return (res == 0)
    except (OSError, subprocess.CalledProcessError):
        return False

dataset/ETHPy150Open floooh/fips/mod/tools/cmake.py run_clean/original