diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-20 15:08:36 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-20 15:08:36 +0000 |
| commit | 2a3fe0707bf0db21d5c3ec19b50d938a86f43dc6 (patch) | |
| tree | ff7bc62049be60f28500e12eff68501516f8d02f /lib | |
| parent | 9caca17d42da338ed2f7e28e060e5ccd522562d2 (diff) | |
| download | ruby-2a3fe0707bf0db21d5c3ec19b50d938a86f43dc6.tar.gz ruby-2a3fe0707bf0db21d5c3ec19b50d938a86f43dc6.tar.xz ruby-2a3fe0707bf0db21d5c3ec19b50d938a86f43dc6.zip | |
* lib/mkmf.rb (create_makefile): support platforms have file separator
other than /.
* {bcc32,win32,wince}/Makefile.sub (BUILD_FILE_SEPARATOR): separator
of building platform.
* {bcc32,win32,wince}/Makefile.sub (CP, INSTALL): use COPY command.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mkmf.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 07017597c..3476dcdf4 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1038,7 +1038,17 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""} files.each do |f| dest = "#{dir}/#{File.basename(f)}" mfile.print("install-rb#{sfx}: #{dest}\n") - mfile.print("#{dest}: #{f}\n\t$(#{$extout ? 'COPY' : 'INSTALL_DATA'}) #{f} #{dir}\n") + mfile.print("#{dest}: #{f}\n\t$(#{$extout ? 'COPY' : 'INSTALL_DATA'}) ") + sep = config_string('BUILD_FILE_SEPARATOR') + if sep + f = f.gsub("/", sep) + sep = ":/="+sep + f = f.gsub(/(\$\(\w+)(\))/) {$1+sep+$2} + f = f.gsub(/(\$\{\w+)(\})/) {$1+sep+$2} + else + sep = "" + end + mfile.print("#{f} $(@D#{sep})\n") end end end |
