aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-28 01:43:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-28 01:43:29 +0000
commit811dc6806368fa784a3c63cd687841deb35dcdc2 (patch)
tree39c5c76c3401ec32d69f448c5768517560ab1b9a /template
parent2827164832f28af129a51b9aed1dd122f9b10b72 (diff)
downloadruby-811dc6806368fa784a3c63cd687841deb35dcdc2.tar.gz
exts.mk.tmpl: ruby names
* template/exts.mk.tmpl: extract configured ruby names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/exts.mk.tmpl15
1 files changed, 8 insertions, 7 deletions
diff --git a/template/exts.mk.tmpl b/template/exts.mk.tmpl
index a9a9ea09d1..222cf2f001 100644
--- a/template/exts.mk.tmpl
+++ b/template/exts.mk.tmpl
@@ -30,15 +30,17 @@ Dir.glob("ext/*/exts.mk") do |e|
macros[n] = m | v
end
end
- s.scan(%r"^(?:ext/\S+)/[^/\s:]+:[ \t]*\1/static$|
+ r = s[/^all static: (.+)$/, 1]
+ deps << $&
+ rubies |= r.split if r
+ s.scan(%r"^(ext/\S+)/[^/\s:]+:[ \t]*\1/static$|
^(?:
- (ruby\w*#{Regexp.quote(exeext)}[^:]*)|
+ (?:#{Regexp.new(r)})|
all|static|install(?:-(?:so|rb))?|
(?:dist|real)?clean
):.+$
- "ox) do |r,|
+ "x) do
deps << $&
- rubies |= r.split if r
end
s.scan(%r"^note:\n((?:\t.+\n)+)") do |(n)|
note |= n.split(/^/)
@@ -92,8 +94,8 @@ SUBMAKEOPTS = DLDOBJS="$(EXTOBJS) $(EXTENCS)" EXTOBJS= \
EXTLDFLAGS="$(EXTLDFLAGS)" EXTINITS="$(EXTINITS)" \
UPDATE_LIBRARIES="$(UPDATE_LIBRARIES)" SHOWFLAGS=
-all: rubies
-static: rubies
+all:
+static:
clean:
-$(Q)$(RM) ext/extinit.<%= objext %>
@@ -102,7 +104,6 @@ distclean:
<%= deps.join("\n") %>
-rubies: <%= rubies.join(' ') %>
% rubies.each do |ruby|
<%= ruby %>:
$(Q)$(MAKE) $(MFLAGS) $(SUBMAKEOPTS) $@