lib/autobuild/packages/autotools.rb in autobuild-1.3.3 vs lib/autobuild/packages/autotools.rb in autobuild-1.4.0

- old
+ new

@@ -60,11 +60,11 @@ # Declare that the given target can be used to generate documentation def with_doc(target = 'doc') doc_task do Dir.chdir(builddir) do Autobuild.progress "generating documentation for #{name}" - Subprocess.run(name, 'doc', Autobuild.tool(:make), target) + Subprocess.run(name, 'doc', Autobuild.tool(:make), "-j#{parallel_build_level}", target) yield if block_given? end end end @@ -231,19 +231,19 @@ # Do the build in builddir def build Dir.chdir(builddir) { Autobuild.progress "building #{name}" Subprocess.run(name, 'build', './config.status') - Subprocess.run(name, 'build', Autobuild.tool(:make)) + Subprocess.run(name, 'build', Autobuild.tool(:make), "-j#{parallel_build_level}") } Autobuild.touch_stamp(buildstamp) end # Install the result in prefix def install Dir.chdir(builddir) { Autobuild.progress "installing #{name}" - Subprocess.run(name, 'install', Autobuild.tool(:make), 'install') + Subprocess.run(name, 'install', Autobuild.tool(:make), "-j#{parallel_build_level}", 'install') } Autobuild.touch_stamp(installstamp) Autobuild.update_environment(prefix) end end