run("cd %s && ./configure --prefix=''" % ssw_dir)
start_step("Build spread-sheet-widget")
- run("cd %s && make -j10" % ssw_dir)
+ run("cd %s && make -j$(nproc)" % ssw_dir)
start_step("Install spread-sheet-widget")
- run("cd %s && make -j10 install DESTDIR=$PWD/inst" % ssw_dir)
+ run("cd %s && make -j$(nproc) install DESTDIR=$PWD/inst" % ssw_dir)
start_step("Fetch branch from Git")
set_var("git_repo", repo)
# Bootstrap.
start_step("Bootstrap (make -f Smake)")
- run("cd pspp && make -f Smake -j10", "bootstrap")
+ run("cd pspp && make -f Smake -j$(nproc)", "bootstrap")
# Configure.
start_step("Configure source")
fail()
start_step("Build")
- run("cd %s/%s/_build && make -j10" % (builddir, tarball_dir), "build")
- run("cd %s/%s/_build/perl-module && perl Makefile.PL && make -j10"
+ run("cd %s/%s/_build && make -j$(nproc)" % (builddir, tarball_dir), "build")
+ run("cd %s/%s/_build/perl-module && perl Makefile.PL && make -j$(nproc)"
% (builddir, tarball_dir), "build Perl module")
start_step("Install")
run("cd %s/%s/_build && make install DESTDIR=$PWD/pspp-%s"
% (builddir, tarball_dir, binary_version), "install")
- run("cd ../source/%s && make -j10 install DESTDIR=%s/%s/_build/pspp-%s"
+ run("cd ../source/%s && make -j$(nproc) install DESTDIR=%s/%s/_build/pspp-%s"
% (ssw_dir, builddir, tarball_dir, binary_version))
run("cd %s/%s/_build/perl-module && "
"make install DESTDIR=%s/%s/_build/pspp-%s"
fail()
start_step("Uninstall")
- run("cd ../source/%s && make -j10 uninstall DESTDIR=%s/%s/_build/pspp-%s"
+ run("cd ../source/%s && make -j$(nproc) uninstall DESTDIR=%s/%s/_build/pspp-%s"
% (ssw_dir, builddir, tarball_dir, binary_version))
run("cd %s/%s/_build && make uninstall DESTDIR=$PWD/pspp-%s"
% (builddir, tarball_dir, binary_version), "uninstall")