Skip to content

Commit feaf100

Browse files
committed
Don't fail if there is no makefile, simply don't do anything.
1 parent 596d4ab commit feaf100

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rubygems/ext/builder.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def self.class_name
2020

2121
def self.make(dest_path, results, make_dir = Dir.pwd, sitedir = nil, targets = ["clean", "", "install"])
2222
unless File.exist? File.join(make_dir, "Makefile")
23-
raise Gem::InstallError, "Makefile not found"
23+
# No makefile exists, nothing to do.
24+
return
2425
end
2526

2627
# try to find make program from Ruby configure arguments first

0 commit comments

Comments
 (0)