summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-25 07:08:47 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-25 07:08:47 +0000
commit57657a0b9bf558477d5e9c1a3f4a3b89cd5006d1 (patch)
treed4611dec1b17df8e6a9c5c8b781de6e09da5a15d /ext/extmk.rb
parent6f24054f6e529efb2d825d7aef03588692d1effc (diff)
downloadruby-57657a0b9bf558477d5e9c1a3f4a3b89cd5006d1.tar.gz
suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb17
1 files changed, 8 insertions, 9 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 0eb9d0a10f..3b2c0c65fa 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -190,7 +190,6 @@ def extmake(target)
# ignore
ensure
rm_f "conftest*"
- config = $0
$0 = $PROGRAM_NAME
end
end
@@ -424,7 +423,7 @@ end unless $extstatic
ext_prefix = "#{$top_srcdir}/ext"
exts = $static_ext.sort_by {|t, i| i}.collect {|t, i| t}
withes, withouts = %w[--with --without].collect {|w|
- if not (w = %w[-extensions -ext].collect {|o|arg_config(w+o)}).any?
+ if !(w = %w[-extensions -ext].collect {|o|arg_config(w+o)}).any?
nil
elsif (w = w.grep(String)).empty?
proc {true}
@@ -617,20 +616,20 @@ if $configure_only and $command_output
end
mf.puts
targets = %w[all install static install-so install-rb clean distclean realclean]
- targets.each do |target|
- mf.puts "#{target}: $(extensions:/.=/#{target})"
+ targets.each do |tgt|
+ mf.puts "#{tgt}: $(extensions:/.=/#{tgt})"
end
mf.puts
mf.puts "all: #{rubies.join(' ')}"
mf.puts "#{rubies.join(' ')}: $(extensions:/.=/all)"
- rubies.each do |target|
- mf.puts "#{target}:\n\t$(Q)$(MAKE) $(MFLAGS) $@"
+ rubies.each do |tgt|
+ mf.puts "#{tgt}:\n\t$(Q)$(MAKE) $(MFLAGS) $@"
end
mf.puts
- exec = config_string("exec") {|s| s + " "}
- targets.each do |target|
+ exec = config_string("exec") {|str| str + " "}
+ targets.each do |tgt|
exts.each do |d|
- mf.puts "#{d[0..-2]}#{target}:\n\t$(Q)cd $(@D) && #{exec}$(MAKE) $(MFLAGS) $(@F)"
+ mf.puts "#{d[0..-2]}#{tgt}:\n\t$(Q)cd $(@D) && #{exec}$(MAKE) $(MFLAGS) $(@F)"
end
end
end