From 348d8bdb0edeb4df2ef40379ab579dfc15afc327 Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Wed, 20 Mar 2024 16:43:26 +0100 Subject: Use `$ext_build_dir` consistently Instead of hardcoded "ext". --- tool/rbinstall.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 2faaece8c9..3a36777420 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -555,11 +555,17 @@ module RbInstall class Ext < self def skip_install?(files) # install ext only when it's configured - !File.exist?("#{$ext_build_dir}/#{relative_base}/Makefile") + !File.exist?("#{makefile_dir}/Makefile") end def ruby_libraries - Dir.glob("lib/**/*.rb", base: "#{srcdir}/ext/#{relative_base}") + Dir.glob("lib/**/*.rb", base: makefile_dir) + end + + private + + def makefile_dir + File.expand_path("#{$ext_build_dir}/#{relative_base}", srcdir) end end -- cgit v1.2.3