summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-08 15:45:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-08 15:45:33 +0000
commitd9e5dd3b0fbbb71e37fcee4a745673848555997e (patch)
tree1ea5bc69032afdc30dddc80e7cef289710964134 /ext/extmk.rb
parentc74a962aab0c8af42a5e7ef37ac81d3a7e625def (diff)
* ext/extmk.rb: nmake substitutes all occurences in macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 41d379f..13b5ffd 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -576,7 +576,7 @@ end
$mflags.unshift("topdir=#$topdir")
ENV.delete("RUBYOPT")
if $configure_only and $command_output
- exts.map! {|d| "ext/#{d}/"}
+ exts.map! {|d| "ext/#{d}/."}
open($command_output, "wb") do |mf|
mf.puts "V = 0"
mf.puts "Q1 = $(V:1=)"
@@ -598,11 +598,11 @@ if $configure_only and $command_output
mf.puts
targets = %w[all install static install-so install-rb clean distclean realclean]
targets.each do |target|
- mf.puts "#{target}: $(extensions:/=/#{target})"
+ mf.puts "#{target}: $(extensions:/.=/#{target})"
end
mf.puts
mf.puts "all: #{rubies.join(' ')}"
- mf.puts "#{rubies.join(' ')}: $(extensions:/=/all)"
+ mf.puts "#{rubies.join(' ')}: $(extensions:/.=/all)"
rubies.each do |target|
mf.puts "#{target}:\n\t$(Q)$(MAKE) $(MFLAGS) $@"
end
@@ -610,7 +610,7 @@ if $configure_only and $command_output
exec = config_string("exec") {|s| s + " "}
targets.each do |target|
exts.each do |d|
- mf.puts "#{d}#{target}:\n\t$(Q)cd $(@D) && #{exec}$(MAKE) $(MFLAGS) $(@F)"
+ mf.puts "#{d[0..-2]}#{target}:\n\t$(Q)cd $(@D) && #{exec}$(MAKE) $(MFLAGS) $(@F)"
end
end
end