diff --git a/ChangeLog b/ChangeLog index f1bf36d231..c0ca132e0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 18 14:05:23 2007 Nobuyoshi Nakada + + * enc/depend: get rid of target expanded as empty for nmake. + Tue Dec 18 07:56:57 2007 Yukihiro Matsumoto * proc.c (rb_obj_public_method): Object#public_method to retrieve diff --git a/enc/depend b/enc/depend index b115a8a426..de0e092a00 100644 --- a/enc/depend +++ b/enc/depend @@ -2,23 +2,23 @@ VPATH = <% %w[$(arch_hdrdir)/ruby $(hdrdir)/ruby $(top_srcdir) $(srcdir)].join(CONFIG["PATH_SEPARATOR"]) %> -ENCOBJS = <%encs.map {|e|"#{e}.$(OBJEXT)"}.join(" \\\n\t ")+"\n"%> - -ENCSOS = <%encs.map {|e|"$(ENCSODIR)/#{e}.$(DLEXT)"}.join(" \\\n\t ")+"\n"%> +ENCOBJS = <%encs.map {|e|"#{e}.$(OBJEXT)"}.join(" \\\n\t ")%><%"\n" if encs.size>1%> +ENCSOS = <%encs.map {|e|"$(ENCSODIR)/#{e}.$(DLEXT)"}.join(" \\\n\t ")%> all: $(ENCSOS) .c.$(OBJEXT): <%COMPILE_C%> +! unless encs.empty? $(ENCOBJS): regenc.h oniguruma.h config.h defines.h +! end ! encs.each do |e| - $(ENCSODIR)/<%e%>.$(DLEXT): <%e%>.$(OBJEXT) <%LINK_SO.gsub(/\n/, "\n\t")%> -! end +! end ! encs.each do |e| <%e%>.$(OBJEXT): <%e%>.c ! end