mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
suppress warning: shadowing outer local variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93955c7560
commit
ece9698d73
1 changed files with 7 additions and 7 deletions
|
@ -17,8 +17,8 @@ exts = {}
|
|||
[
|
||||
["exts", "ext", "--extstatic $(EXTSTATIC)"],
|
||||
["gems", "gems", "--no-extstatic"],
|
||||
].each do |t, dir, opt|
|
||||
exts[t] = [opt, Dir.glob("#{srcdir}/#{dir}/*/").map {|n| n[(srcdir.size+1)..-2]}]
|
||||
].each do |t, d, o|
|
||||
exts[t] = [o, Dir.glob("#{srcdir}/#{d}/*/").map {|n| n[(srcdir.size+1)..-2]}]
|
||||
end
|
||||
%>
|
||||
MINIRUBY = <%=miniruby%>
|
||||
|
@ -30,12 +30,12 @@ all: exts gems
|
|||
exts:
|
||||
gems:
|
||||
|
||||
% exts.each do |t, (opt, dirs)|
|
||||
% dirs.each do |dir|
|
||||
<%=t%>: <%=dir%>/exts.mk
|
||||
<%=dir%>/exts.mk: FORCE
|
||||
% exts.each do |t, (o, dirs)|
|
||||
% dirs.each do |d|
|
||||
<%=t%>: <%=d%>/exts.mk
|
||||
<%=d%>/exts.mk: FORCE
|
||||
$(Q)$(MINIRUBY) $(srcdir)/ext/extmk.rb --make='$(MAKE)' \
|
||||
--command-output=$@ $(EXTMK_ARGS) <%=opt%> \
|
||||
--command-output=$@ $(EXTMK_ARGS) <%=o%> \
|
||||
-- configure $(@D)
|
||||
% end
|
||||
% end
|
||||
|
|
Loading…
Reference in a new issue