mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/Makefile.in (.SUFFIXES): renamed to .trans.
* enc/make_encmake.rb: added --encs and --no-encs options. * enc/depend (TRANSVPATH): fix for nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae04e36638
commit
13f1418d54
5 changed files with 53 additions and 16 deletions
|
@ -3,15 +3,32 @@
|
|||
dir = File.expand_path("../..", __FILE__)
|
||||
$:.unshift(dir)
|
||||
$:.unshift(".")
|
||||
$" << "mkmf.rb"
|
||||
load File.expand_path("lib/mkmf.rb", dir)
|
||||
if $".grep(/mkmf/).empty?
|
||||
$" << "mkmf.rb"
|
||||
load File.expand_path("lib/mkmf.rb", dir)
|
||||
end
|
||||
require 'erb'
|
||||
|
||||
if /--builtin-encs=/ =~ ARGV[0]
|
||||
BUILTIN_ENCS = $'.split.map {|e| File.basename(e, '.*') << '.c'}
|
||||
ARGV.shift
|
||||
else
|
||||
BUILTIN_ENCS = []
|
||||
CONFIG["MAKEDIRS"] ||= '@$(MINIRUBY) -run -e mkdir -- -p'
|
||||
|
||||
BUILTIN_ENCS = []
|
||||
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--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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue