def run_clean(fips_dir, build_dir) :
    """run cmake in build mode

    :param build_dir:   path to the build directory
    :returns:           True if cmake returns successful    
    """
    try :
        res = subprocess.call('cmake --build . --target clean', cwd=build_dir, shell=True)
        return res == 0
    except (__HOLE__, subprocess.CalledProcessError) :
        return False
dataset/ETHPy150Open floooh/fips/mod/tools/cmake.py/run_clean