[前][次][番号順一覧][スレッド一覧]

ruby-changes:10348

From: usa <ko1@a...>
Date: Fri, 30 Jan 2009 14:15:43 +0900 (JST)
Subject: [ruby-changes:10348] Ruby:r21892 (trunk): * enc/depend: extract comile rules to each target for VC++.

usa	2009-01-30 14:13:22 +0900 (Fri, 30 Jan 2009)

  New Revision: 21892

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21892

  Log:
    * enc/depend: extract comile rules to each target for VC++.

  Modified files:
    trunk/ChangeLog
    trunk/enc/depend

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21891)
+++ ChangeLog	(revision 21892)
@@ -1,3 +1,7 @@
+Fri Jan 30 14:11:48 2009  NAKAMURA Usaku  <usa@r...>
+
+	* enc/depend: extract comile rules to each target for VC++.
+
 Fri Jan 30 12:59:49 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* cygwin/GNUmakefile.in (RUBYDEF): depends on makefiles.
Index: enc/depend
===================================================================
--- enc/depend	(revision 21891)
+++ enc/depend	(revision 21892)
@@ -77,16 +77,6 @@
 
 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 @@
 
 % 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]