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

ruby-changes:10246

From: nobu <ko1@a...>
Date: Tue, 27 Jan 2009 11:04:13 +0900 (JST)
Subject: [ruby-changes:10246] Ruby:r21790 (trunk): * common.mk (distclean-enc, realclean-enc): do not call clean of

nobu	2009-01-27 11:03:54 +0900 (Tue, 27 Jan 2009)

  New Revision: 21790

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

  Log:
    * common.mk (distclean-enc, realclean-enc): do not call clean of
      enc.mk twice or more.
    * enc/depend (cleanobjs): added deffile.
    
    * lib/mkmf.rb (create_makefile): removes deffile at clean instead
      of distclean.
    
    * win32/Makefile.sub (miniruby, LIBRUBY_SO): removes lib and exp
      files.
    
    * win32/Makefile.sub (clean, distclean): have moved to common.mk.
    
    * win32/rmdirs.bat: omits `not empty' message.

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/enc/depend
    trunk/lib/mkmf.rb
    trunk/win32/Makefile.sub
    trunk/win32/rmdirs.bat

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21789)
+++ ChangeLog	(revision 21790)
@@ -1,3 +1,20 @@
+Tue Jan 27 11:03:52 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* common.mk (distclean-enc, realclean-enc): do not call clean of
+	  enc.mk twice or more.
+
+	* enc/depend (cleanobjs): added deffile.
+
+	* lib/mkmf.rb (create_makefile): removes deffile at clean instead
+	  of distclean.
+
+	* win32/Makefile.sub (miniruby, LIBRUBY_SO): removes lib and exp
+	  files.
+
+	* win32/Makefile.sub (clean, distclean): have moved to common.mk.
+
+	* win32/rmdirs.bat: omits `not empty' message.
+
 Tue Jan 27 10:15:33 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* transcode.c (struct rb_transcoding): added ary member for debug.
@@ -46,7 +63,7 @@
 
 Sun Jan 25 11:50:20 2009  Nobuyoshi Nakada  <nobu@r...>
 
-	* lib/mkmf.rb (create_makefile):fixed the variables order because
+	* lib/mkmf.rb (create_makefile): fixed the variables order because
 	  converter proc refers the separator.
 
 Sun Jan 25 11:25:10 2009  Nobuyoshi Nakada  <nobu@r...>
Index: enc/depend
===================================================================
--- enc/depend	(revision 21789)
+++ enc/depend	(revision 21790)
@@ -30,6 +30,7 @@
 % dependencies = encs + trans
 % cleanlibs = Shellwords.shellwords(CONFIG["cleanlibs"] || "")
 % cleanobjs = Shellwords.shellwords(CONFIG["cleanobjs"] || "")
+% cleanobjs << "$*.def" if deffile
 % rule_subst = CONFIG["RULE_SUBST"] || "%s"
 % transvpath = rule_subst.dup.sub!(/\{[^{}]+\}/, '$(TRANSVPATH)/') || "enc/trans/%s"
 % transvpath_prefix = (rule_subst.dup.sub!(/\{[^{}]+\}/, '{$(TRANSVPATH)}') || "") % ""
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 21789)
+++ lib/mkmf.rb	(revision 21790)
@@ -1599,7 +1599,7 @@
       makedef = %{-e "puts 'EXPORTS', '#{EXPORT_PREFIX}Init_$(TARGET)'"}
     end
     if makedef
-      $distcleanfiles << '$(DEFFILE)'
+      $cleanfiles << '$(DEFFILE)'
       origdef = deffile
       deffile = "$(TARGET)-$(arch).def"
     end
@@ -1649,7 +1649,7 @@
   mfile.print "
 TARGET_SO     = #{($extout ? '$(RUBYARCHDIR)/' : '')}$(DLLIB)
 CLEANLIBS     = #{n}.#{CONFIG['DLEXT']} #{config_string('cleanlibs') {|t| t.gsub(/\$\*/) {n}}}
-CLEANOBJS     = *.#{$OBJEXT} #{config_string('cleanobjs') {|t| t.gsub(/\$\*/, '$(TARGET)')}} *.bak
+CLEANOBJS     = *.#{$OBJEXT} #{config_string('cleanobjs') {|t| t.gsub(/\$\*/, "$(TARGET)#{deffile ? '-$(arch)': ''}")} if target} *.bak
 
 all:    #{$extout ? "install" : target ? "$(DLLIB)" : "Makefile"}
 static: $(STATIC_LIB)#{$extout ? " install-rb" : ""}
Index: common.mk
===================================================================
--- common.mk	(revision 21789)
+++ common.mk	(revision 21790)
@@ -346,8 +346,6 @@
 	@$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) $(ARCHFILE) .*.time
 	@$(RM) *.inc y.tab.c y.output encdb.h transdb.h
 clean-ext::
-clean-enc:
-	@-$(MAKE) -f $(ENC_MK) $(MFLAGS) clean
 clean-golf:
 	@$(RM) $(GORUBY)$(EXEEXT) $(GOLFOBJS)
 clean-rdoc:
@@ -360,8 +358,6 @@
 	@$(RM) config.cache config.log config.status config.status.lineno $(PRELUDES)
 	@$(RM) *~ *.bak *.stackdump core *.core gmon.out $(PREP)
 distclean-ext::
-distclean-enc: clean-enc
-	@-$(MAKE) -f $(ENC_MK) $(MFLAGS) distclean
 distclean-golf: clean-golf
 	@$(RM) $(GOLFPRELUDES)
 distclean-rdoc:
@@ -372,10 +368,13 @@
 realclean-local:: distclean-local
 	@$(RM) parse.c parse.h lex.c newline.c revision.h
 realclean-ext::
-realclean-enc:: distclean-enc
 realclean-golf: distclean-golf
 realclean-extout: distclean-extout
 
+clean-enc distclean-enc realclean-enc:
+	@echo $(@:-enc=ing) encodings
+	@-$(MAKE) -f $(ENC_MK) $(MFLAGS) $(@:-enc=)
+
 check: test test-all
 
 btest: miniruby$(EXEEXT) PHONY
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 21789)
+++ win32/Makefile.sub	(revision 21790)
@@ -661,6 +661,7 @@
 miniruby$(EXEEXT):
 		@echo. $(LIBS)
 		$(PURIFY) $(CC) $(MAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(LIBS) -Fe$@ $(LDFLAGS)
+		@$(RM) miniruby.lib miniruby.exp
 		miniruby.exe -v
 		$(LDSHARED_1)
 		$(LDSHARED_2)
@@ -696,6 +697,7 @@
 		$(LDSHARED) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) \
 			$(RUBY_SO_NAME).res $(LIBS) -Fe$@ $(LDFLAGS) \
 			$(LIBRUBY_DLDFLAGS)
+		@$(RM) dummy.lib dummy.exp
 		$(LDSHARED_0)
 		$(LDSHARED_1)
 		$(LDSHARED_2)
@@ -712,9 +714,6 @@
 		@$(RM) $(RUBY_INSTALL_NAME).res $(RUBYW_INSTALL_NAME).res $(RUBY_SO_NAME).res
 		@$(RM) *.map *.pdb *.ilk *.exp $(RUBYDEF) ext\ripper\y.output
 
-clean:
-		@-rmdir $(EXTOUT:/=\)\$(arch)
-
 distclean-local::
 		@$(RM) ext\config.cache $(RBCONFIG:/=\) $(CONFIG_H:/=\)
 		@$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc
@@ -724,10 +723,6 @@
 distclean-rdoc:
 		@-$(RMALL) $(RDOCOUT:/=\)
 
-distclean:
-		@-rmdir $(EXTOUT:/=\)\$(arch)
-		@-rmdir $(EXTOUT:/=\)
-
 clean-ext distclean-ext realclean-ext::
 !if "$(EXTS)" != ""
 		@for %I in ($(EXTS)) \
Index: win32/rmdirs.bat
===================================================================
--- win32/rmdirs.bat	(revision 21789)
+++ win32/rmdirs.bat	(revision 21790)
@@ -10,7 +10,7 @@
         if not exist "%dir%\." goto :begin
         if "%dir%" == "." goto :begin
         if "%dir%" == ".." goto :begin
-        rd "%dir%" || goto :begin
+        rd "%dir%" 2> nul || goto :begin
         :trim_sep
             if not /%dir:~-1%/ == /\/ goto :trim_base
             set dir=%dir:~0,-1%

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

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