diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 81a3f57..4d47d2e 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -29,20 +29,20 @@ class Rbpkg::Repo
if ! tag_present?("build-done")
configure()
if File.file?("#{src_dir}/Makefile")
- make
+ cmd! "cd #{sh_quote(src_dir)} && #{make_cmd}"
elsif File.file?("#{src_dir}/CMakeLists.txt")
- cmake
+ cmake_cmd
end
tag_set("build-done")
end
end
- def cmake
+ def cmake_cmd
cmd! "cmake -j #{Rbpkg.ncpu} --build #{sh_quote(obj_dir)}"
end
- def make
- cmd! "cd #{sh_quote(src_dir)} && #{make} -j #{Rbpkg.ncpu}"
+ def make_cmd
+ "${make} -j #{Rbpkg.ncpu}"
end
def checkout(branch)
diff --git a/lib/rbpkg/repos/c3.rb b/lib/rbpkg/repos/c3.rb
index 2d46769..bdf9b88 100644
--- a/lib/rbpkg/repos/c3.rb
+++ b/lib/rbpkg/repos/c3.rb
@@ -12,8 +12,8 @@ class Rbpkg::Repos::C3 < Rbpkg::Repo
"https://git.kmx.io/c3-lang/c3.git"
end
- def make
- cmd! "cd #{sh_quote(src_dir)} && #{make}"
+ def make_cmd
+ make
end
repo_register