From ec85af49550d968445ed8158db7c2dee86cd7561 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 6 Aug 2008 20:19:25 +0000 Subject: [PATCH] * enc/depend: enc/*.c is source but enc/trans/*.c is generated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ enc/depend | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index faf93673a9..f86e75156d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 7 05:18:30 2008 NARUSE, Yui + + * enc/depend: enc/*.c is source but enc/trans/*.c is generated. + Thu Aug 7 05:14:12 2008 NARUSE, Yui * regenc.c (code_to_mbc): raise RangeError Integer#chr diff --git a/enc/depend b/enc/depend index 3ab7e48ef1..b5d20151fc 100644 --- a/enc/depend +++ b/enc/depend @@ -70,8 +70,9 @@ $(ENCSODIR)/<%=e%>.$(DLEXT): <%=obj%> % end % dependencies.each do |e| -enc/<%=e%>.$(OBJEXT): enc/<%=e%>.c - <%=COMPILE_C.sub(/\$(?:<|\(<(?:.*)\))/) {"enc/#{e}.c"}%> +% ee = (/^trans/ =~ e ? 'enc/' : '$srcdir/enc/') + e +<%=ee%>.$(OBJEXT): enc/<%=e%>.c + <%=COMPILE_C.sub(/\$(?:<|\(<(?:.*)\))/) {"#{ee}.c"}%> % end enc/encdb.$(OBJEXT): encdb.h