def run_clean(fips_dir, build_dir) :
    try :
        res = subprocess.call('cmake --build . --target clean', cwd=build_dir, shell=True)
        return res == 0
    except (OSError, subprocess.CalledProcessError) :
        return False
run cmake in build mode
dataset/ETHPy150Open floooh/fips/mod/tools/cmake.py/run_clean