ruby-changes:9427
From: nobu <ko1@a...>
Date: Wed, 24 Dec 2008 13:45:47 +0900 (JST)
Subject: [ruby-changes:9427] Ruby:r20965 (trunk): * configure.in (Makefile): removes GNU make specific files on
nobu 2008-12-24 13:45:34 +0900 (Wed, 24 Dec 2008) New Revision: 20965 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20965 Log: * configure.in (Makefile): removes GNU make specific files on distclean. * Makefile.in (distclean-ext): removes extension directories. * lib/mkmf.rb (try_do): removes conftest.dSYM Modified files: trunk/Makefile.in trunk/configure.in trunk/lib/mkmf.rb Index: configure.in =================================================================== --- configure.in (revision 20964) +++ configure.in (revision 20965) @@ -2144,6 +2144,8 @@ if test "$gnumake" != yes; then echo ['$(MKFILES): $(srcdir)/common.mk'] sed ['s/{\$([^(){}]*)[^{}]*}//g'] ${srcdir}/common.mk + else + echo 'distclean-local::; @$(RM) GNUmakefile uncommon.mk' fi } >> confmk$$.tmp && mv -f confmk$$.tmp Makefile], [RUBY_INSTALL_NAME=$RUBY_INSTALL_NAME EXEEXT=$EXEEXT gnumake=$gnumake]) Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 20964) +++ lib/mkmf.rb (revision 20965) @@ -194,6 +194,10 @@ FileUtils.rm_f(Dir[*files]) end +def rm_rf(*files) + FileUtils.rm_rf(Dir[*files]) +end + # Returns time stamp of the +target+ file if it exists and is newer # than or equal to all of +times+. def modified?(target, times) @@ -361,6 +365,7 @@ xsystem(command) ensure log_src(src) + rm_rf 'conftest.dSYM' end def link_command(ldflags, opt="", libpath=$DEFLIBPATH|$LIBPATH) @@ -1894,7 +1899,6 @@ \t\t@-$(RM) $(CLEANLIBS#{sep}) $(CLEANOBJS#{sep}) $(CLEANFILES#{sep}) distclean: clean -\t\t@-$(RM_RF) conftest.dSYM \t\t@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log \t\t@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES#{sep}) Index: Makefile.in =================================================================== --- Makefile.in (revision 20964) +++ Makefile.in (revision 20965) @@ -227,7 +227,8 @@ @find ext -name Makefile | sort | while read mk; do \ dir=`dirname "$$mk"`; \ echo $(@:-ext=)ing `expr "$$dir" : 'ext/\(.*\)'`; \ - (cd "$$dir"; $(MAKE) $(MFLAGS) $(@:-ext=)); \ + (cd "$$dir"; $(MAKE) $(MFLAGS) $(@:-ext=)) && \ + test $@ != clean-ext && rmdir -p "$$dir" 2> /dev/null; \ done ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/