Sha256: 9a2784495522d9be7f8bfb008a82ecd0d8ebd585cfba6b8d2bba1603852aabf4

Contents?: true

Size: 1.12 KB

Versions: 130

Compression:

Stored size: 1.12 KB

Contents

#! ./miniruby

dir = File.expand_path("../..", __FILE__)
$:.unshift(dir)
$:.unshift(".")
if $".grep(/mkmf/).empty?
  $" << "mkmf.rb"
  load File.expand_path("lib/mkmf.rb", dir)
end
require 'erb'

CONFIG["MAKEDIRS"] ||= '@$(MINIRUBY) -run -e mkdir -- -p'

BUILTIN_ENCS = []
BUILTIN_TRANSES = []
ENC_PATTERNS = []
NOENC_PATTERNS = []

until ARGV.empty?
  case ARGV[0]
  when /\A--builtin-encs=/
    BUILTIN_ENCS.concat $'.split.map {|e| File.basename(e, '.*') << '.c'}
    ARGV.shift
  when /\A--builtin-transes=/
    BUILTIN_TRANSES.concat $'.split.map {|e| File.basename(e, '.*') }
    ARGV.shift
  when /\A--encs=/
    ENC_PATTERNS.concat $'.split
    ARGV.shift
  when /\A--no-encs=/
    NOENC_PATTERNS.concat $'.split
    ARGV.shift
  else
    break
  end
end

if File.exist?(depend = File.join($srcdir, "depend"))
  erb = ERB.new(File.read(depend), nil, '%')
  erb.filename = depend
  tmp = erb.result(binding)
  dep = "\n#### depend ####\n\n" << depend_rules(tmp).join
else
  dep = ""
end
mkin = File.read(File.join($srcdir, "Makefile.in"))
mkin.gsub!(/@(#{CONFIG.keys.join('|')})@/) {CONFIG[$1]}
open(ARGV[0], 'wb') {|f|
  f.puts mkin, dep
}

Version data entries

130 entries across 130 versions & 2 rubygems

Version Path
rhodes-5.5.18 platform/shared/ruby/enc/make_encmake.rb
rhodes-5.5.17 platform/shared/ruby/enc/make_encmake.rb
rhodes-5.5.15 platform/shared/ruby/enc/make_encmake.rb
rhodes-5.5.0.22 platform/shared/ruby/enc/make_encmake.rb
rhodes-5.5.2 platform/shared/ruby/enc/make_encmake.rb
rhodes-5.5.0.7 platform/shared/ruby/enc/make_encmake.rb
rhodes-5.5.0.3 platform/shared/ruby/enc/make_encmake.rb
rhodes-5.5.0 platform/shared/ruby/enc/make_encmake.rb
tauplatform-1.0.3 platform/shared/ruby/enc/make_encmake.rb
tauplatform-1.0.2 platform/shared/ruby/enc/make_encmake.rb
tauplatform-1.0.1 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.5.1.12 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.3.5 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.4.2 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.3.4 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.3.3 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.3.3.beta.4 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.3.3.beta.3 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.3.3.beta.2 platform/shared/ruby/enc/make_encmake.rb
rhodes-3.3.3.beta.1 platform/shared/ruby/enc/make_encmake.rb