Skip to content

Commit

Permalink
* win32/Makefile.sub (clean-enc): pass V to inferior make.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Dec 29, 2010
1 parent 055e455 commit 0dfd81c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
Wed Dec 29 20:27:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>

* win32/Makefile.sub (clean-enc): pass V to inferior make.

Wed Dec 29 18:23:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>

* re.c (rb_reg_expr_str): need to escape if the coderange is invalid.
Expand Down
4 changes: 2 additions & 2 deletions enc/Makefile.in
Expand Up @@ -63,10 +63,10 @@ MAKEDIRS = @MAKEDIRS@
all: make-workdir

make-workdir:
$(Q) $(MAKEDIRS) $(WORKDIRS)
$(Q)$(MAKEDIRS) $(WORKDIRS)

clean:

distclean: clean
@$(RM) enc.mk
$(Q)$(RM) enc.mk
realclean: distclean clean-srcs
28 changes: 14 additions & 14 deletions enc/depend
Expand Up @@ -83,7 +83,7 @@ srcs: $(TRANSCSRCS)

<%=transvpath_prefix%>.trans<%=transvpath_prefix%>.c:
$(ECHO) generating table from $@
$(Q) $(MINIRUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo "$@" "$<"
$(Q)$(MINIRUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo "$@" "$<"

% unless encs.empty? or trans.empty?

Expand Down Expand Up @@ -120,20 +120,20 @@ $(TRANSOBJS): ruby.h intern.h config.h defines.h missing.h encoding.h oniguruma.
% base = File.basename(e)
% cmd.sub!(/(?=\$\(DLDFLAGS\))/) {dldflags.sub(/\$\(TARGET\)/) {base} + " "} if dldflags
% if df
$(Q) echo> <%=df%> EXPORTS
$(Q) echo>> <%=df%> <%=EXPORT_PREFIX%>Init_<%=base%>
$(Q)echo> <%=df%> EXPORTS
$(Q)echo>> <%=df%> <%=EXPORT_PREFIX%>Init_<%=base%>
% cmd.sub!(/\$\(DEFFILE\)/) {df}
% cmd.gsub!(/-(?:implib|pdb):/) {|s|"#{s}enc/#{e.sub(/[^\/]+\z/, '')}"}
% end
$(Q) $(MAKEDIRS) "$(@D)"
$(Q) <%=cmd%>
$(Q)$(MAKEDIRS) "$(@D)"
$(Q)<%=cmd%>

% end
% dependencies.each do |e|
<%="enc/#{e}.$(OBJEXT)"%>: <%="$(encsrcdir)/#{e}.c"%>
-$(Q) $(MAKEDIRS) "$(@D)"
-$(Q)$(MAKEDIRS) "$(@D)"
$(ECHO) compiling <%= "#{e}.c"%>
$(Q) <%=COMPILE_C.gsub(/\$(\()?<(\:[^)]+)?(\))?/){"$(encsrcdir)/#{e}.c"}%>
$(Q)<%=COMPILE_C.gsub(/\$(\()?<(\:[^)]+)?(\))?/){"$(encsrcdir)/#{e}.c"}%>

% end

Expand All @@ -142,16 +142,16 @@ enc/trans/transdb.$(OBJEXT): transdb.h

clean:
% %w[$(ENCSOS) $(ENCOBJS) $(ENCCLEANOBJS) $(ENCCLEANLIBS) $(TRANSSOS) $(TRANSOBJS) $(TRANSCLEANOBJS) $(TRANSCLEANLIBS)].each do |clean|
@$(RM) <%=pathrep[clean]%>
$(Q)$(RM) <%=pathrep[clean]%>
% end
% @ignore_error = $nmake ? '' : ' 2> /dev/null || true'
% workdirs.reverse_each do|dir|
@-$(RMDIR) <%=pathrep[dir]%><%=@ignore_error%>
-$(Q)$(RMDIR) <%=pathrep[dir]%><%=@ignore_error%>
% end

clean-srcs:
@$(RM) <%=pathrep['$(TRANSCSRCS)']%>
@-$(RMDIR) <%=pathrep['enc/trans']%><%=@ignore_error%>
@$(RM) enc/unicode/name2ctype.h
@-$(RMDIR) <%=pathrep['enc/unicode']%><%=@ignore_error%>
@-$(RMDIR) <%=pathrep['enc']%><%=@ignore_error%>
$(Q)$(RM) <%=pathrep['$(TRANSCSRCS)']%>
-$(Q)$(RMDIR) <%=pathrep['enc/trans']%><%=@ignore_error%>
$(Q)$(RM) enc/unicode/name2ctype.h
-$(Q)$(RMDIR) <%=pathrep['enc/unicode']%><%=@ignore_error%>
-$(Q)$(RMDIR) <%=pathrep['enc']%><%=@ignore_error%>
2 changes: 1 addition & 1 deletion win32/Makefile.sub
Expand Up @@ -930,7 +930,7 @@ clean-extout:
clean-enc distclean-enc realclean-enc:
!if exist($(ENC_MK))
@echo $(@:-enc=ing) encodings
@-$(MAKE) -f $(ENC_MK) $(MFLAGS) $(@:-enc=)
@-$(MAKE) -f $(ENC_MK) $(MFLAGS) V=$(V) $(@:-enc=)
!endif

$(RCFILES): $(RBCONFIG) $(srcdir)/revision.h $(srcdir)/win32/resource.rb
Expand Down

0 comments on commit 0dfd81c

Please sign in to comment.