* lib/mkmf.rb (configuration): generalized nmake dependent code.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-09-21 14:31:20 +00:00
parent 5cbb885ce1
commit c6b5ca0e21
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Sep 21 23:30:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (configuration): generalized nmake dependent code.
Wed Sep 21 14:16:30 2005 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/ripper/depend (SUFFIXES): no longer needed.

View File

@ -922,6 +922,12 @@ VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
next unless /^(?:src|top|hdr|(.*))dir$/ =~ key and $1
mk << "#{key} = #{with_destdir(var.sub(drive, ''))}\n"
end
if !$extmk and !$configure_args.has_key?('--ruby') and
sep = config_string('BUILD_FILE_SEPARATOR')
sep = ":/=#{sep}"
else
sep = ""
end
mk << %{
CC = #{CONFIG['CC']}
CXX = #{CONFIG['CXX']}
@ -945,7 +951,7 @@ arch = #{CONFIG['arch']}
sitearch = #{CONFIG['sitearch']}
ruby_version = #{Config::CONFIG['ruby_version']}
ruby = #{$ruby}
RUBY = #{($nmake && !$extmk && !$configure_args.has_key?('--ruby')) ? '$(ruby:/=\)' : '$(ruby)'}
RUBY = $(ruby#{sep})
RM = #{config_string('RM') || '$(RUBY) -run -e rm -- -f'}
MAKEDIRS = #{config_string('MAKEDIRS') || '@$(RUBY) -run -e mkdir -- -p'}
INSTALL = #{config_string('INSTALL') || '@$(RUBY) -run -e install -- -vp'}