In Files

  • rubygems/ext/configure_builder.rb

Methods

Class/Module Index [+]

Quicksearch

Gem::Ext::ConfigureBuilder

Public Class Methods

build(extension, dest_path, results, args=[], lib_dir=nil, configure_dir=Dir.pwd) click to toggle source
 
               # File rubygems/ext/configure_builder.rb, line 9
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}"
    cmd << " #{args.join ' '}" unless args.empty?

    run cmd, results, class_name, configure_dir
  end

  make dest_path, results, configure_dir

  results
end