class Gem::Ext::ConfigureBuilder

Public Class Methods

build(extension, dest_path, results, args=[], lib_dir=nil, configure_dir=Dir.pwd) click to toggle source
# File lib/rubygems/ext/configure_builder.rb, line 10
def self.build(extension, dest_path, results, args=[], lib_dir=nil, configure_dir=Dir.pwd)
  unless File.exist?(File.join(configure_dir, "Makefile"))
    cmd = ["sh", "./configure", "--prefix=#{dest_path}", *args]

    run cmd, results, class_name, configure_dir
  end

  make dest_path, results, configure_dir

  results
end