diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-28 14:22:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-28 14:22:34 +0000 |
commit | 8027dfafd78318b943cb1a517134f0d3f0e50c72 (patch) | |
tree | 4a3fa4fbf22156ff04fa1d62578b75ba649f4bc1 /enc | |
parent | 06711fd1e38998000ffedc1596b903ebc3394950 (diff) | |
download | ruby-8027dfafd78318b943cb1a517134f0d3f0e50c72.tar.gz |
enc/depend: extract transcode_tblgen
* enc/depend: extract transcode_tblgen method calls for libraries
loaded by dynamically generated names, in single_byte.trans.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r-- | enc/depend | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/enc/depend b/enc/depend index 6053487653..e47349282f 100644 --- a/enc/depend +++ b/enc/depend @@ -108,7 +108,11 @@ enc/<%=e%>.$(OBJEXT): <%=deps.map {|n| rule_subst % n}.join(' ')%> % src = "#{e}.trans" <%=transvpath % "#{e}.c"%>: <%= transvpath % "#{e}.trans"%> -% src = [*IO.read(File.join($srcdir, "trans", src)).scan(/^\s*require\s+[\'\"]([^\'\"]*)/).flatten.map{|c|c+".rb"}] +% trans = IO.read(File.join($srcdir, "trans", src)) +% src = trans.scan(/^\s*require\s+[\'\"]([^\'\"]*)/).flatten.map{|c|c+".rb"} +% if src.empty? +% src = trans.scan(/^\s*transcode_tblgen_\w+\s+[\'\"]([^\'\"]*)/).flatten.map{|c|c+"-tbl.rb"} +% end <%=transvpath % "#{e}.c"%>: <%= src.map {|s| transvpath % "#{s}"}.join(" ")%> $(srcdir)/tool/transcode-tblgen.rb % end |