зеркало из https://github.com/github/ruby.git
* enc/depend: extract comile rules to each target for VC++.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
210651a8e0
Коммит
39bc33d9a7
|
@ -1,3 +1,7 @@
|
|||
Fri Jan 30 14:11:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* enc/depend: extract comile rules to each target for VC++.
|
||||
|
||||
Fri Jan 30 12:59:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* cygwin/GNUmakefile.in (RUBYDEF): depends on makefiles.
|
||||
|
|
15
enc/depend
15
enc/depend
|
@ -77,16 +77,6 @@ trans: $(TRANSSOS)
|
|||
|
||||
srcs: $(TRANSCSRCS)
|
||||
|
||||
% if rule = (compile_rules = COMPILE_RULES).find(&/\$\(srcdir\)/.method(:=~))
|
||||
% compile_rules = [rule.sub(/\$\(srcdir\)/, '\&/enc'), rule.sub(/\$\(srcdir\)/, '\&/enc/trans')] + compile_rules
|
||||
% end
|
||||
% compile_rules.each do |rule|
|
||||
<%= rule % %w[c $(OBJEXT)] %>
|
||||
-@$(MAKEDIRS) "$(@D)"
|
||||
<%=COMPILE_C%>
|
||||
|
||||
% end
|
||||
|
||||
<%=transvpath_prefix%>.trans<%=transvpath_prefix%>.c:
|
||||
$(MINIRUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo "$@" "$<"
|
||||
|
||||
|
@ -122,7 +112,10 @@ $(ENCSODIR)/<%=e%>.$(DLEXT): <%=obj%>
|
|||
|
||||
% end
|
||||
% dependencies.each do |e|
|
||||
<%=rule_subst % "enc/#{e}.$(OBJEXT)"%>: <%=rule_subst % "enc/#{e}.c"%>
|
||||
<%="enc/#{e}.$(OBJEXT)"%>: <%="$(encsrcdir)/#{e}.c"%>
|
||||
-@$(MAKEDIRS) "$(@D)"
|
||||
<%=COMPILE_C.gsub(/\$(\()?<(\:[^)]+)?(\))?/){"$(encsrcdir)/#{e}.c"}%>
|
||||
|
||||
% end
|
||||
|
||||
enc/encdb.$(OBJEXT): encdb.h
|
||||
|
|
Загрузка…
Ссылка в новой задаче