

def make(build_dir, num_jobs=None, target=None):
    ' Launch make from a build dir.\n    Launch make -j <num_jobs> in num_jobs is not none\n\n    '
    cmd = ['make']
    if (num_jobs is not None):
        cmd += [('-j%i' % num_jobs)]
    if target:
        cmd.append(target)
    qisys.command.call(cmd, cwd=build_dir)

dataset/ETHPy150Open aldebaran/qibuild/python/qibuild/build.py make/original