diff --git a/ChangeLog b/ChangeLog index ead5928012..318ed2a1a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 7 16:28:51 2008 Nobuyoshi Nakada + + * Makefile.in, common.mk, {bcc,win}32/Makefile.sub (clean-ext): do not + use miniruby. + Thu Aug 7 14:16:24 2008 Nobuyoshi Nakada * lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS): diff --git a/Makefile.in b/Makefile.in index b01dbb61c7..299d47ee7c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -183,6 +183,14 @@ clean-local:: distclean-local:: @$(RM) ext/config.cache $(RBCONFIG) + -$(RM) $(INSTALLED_LIST) + +clean-ext distclean-ext realclean-ext:: + @find ext -name Makefile | sort | while read mk; do \ + dir=`dirname "$$mk"`; \ + echo $(@:-ext=)ing `expr "$$dir" : 'ext/\(.*\)'`; \ + (cd "$$dir"; $(MAKE) $(MFLAGS) $(@:-ext=)); \ + done ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(OUTFLAG)$@ -c ext/extinit.c diff --git a/bcc32/Makefile.sub b/bcc32/Makefile.sub index ce08fa34e8..46d9e6e932 100644 --- a/bcc32/Makefile.sub +++ b/bcc32/Makefile.sub @@ -486,6 +486,14 @@ distclean-local:: @$(RM) ext\config.cache $(RBCONFIG:/=\) @$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc +clean-ext distclean-ext realclean-ext:: + @for /R ext %I in (.) do @if exist %I\Makefile ( \ + echo $(@:-ext=)ing %~nI & \ + cd %I & \ + $(MAKE) $(MFLAGS) $(@:-ext=) & \ + cd %CD% \ + ) + update-rubyspec: @echo SPEC_EXISTS=0 > $@.mk @if exist $(srcdir:/=\)\rubyspec\nul echo SPEC_EXISTS=1 >> $@.mk diff --git a/common.mk b/common.mk index c78736634c..b5d0f04815 100644 --- a/common.mk +++ b/common.mk @@ -284,22 +284,19 @@ clean-local:: @$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES) @$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) $(ARCHFILE) .*.time @$(RM) y.tab.c y.output -clean-ext: - @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) clean +clean-ext:: distclean: distclean-ext distclean-local distclean-local:: clean-local @$(RM) $(MKFILES) config.h rbconfig.rb @$(RM) config.cache config.log config.status @$(RM) *~ *.bak *.stackdump core *.core gmon.out $(PREP) -distclean-ext: - @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) distclean +distclean-ext:: realclean:: realclean-ext realclean-local realclean-local:: distclean-local @$(RM) parse.c lex.c realclean-ext:: - @-$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS) realclean check: test test-all diff --git a/win32/Makefile.sub b/win32/Makefile.sub index a78cecddd0..db0b92c1c3 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -619,6 +619,14 @@ distclean-local:: @$(RM) ext\config.cache $(RBCONFIG:/=\) $(CONFIG_H:/=\) @$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc +clean-ext distclean-ext realclean-ext:: + @for /R ext %I in (.) do @if exist %I\Makefile ( \ + echo $(@:-ext=)ing %~nI & \ + cd %I & \ + $(MAKE) $(MFLAGS) $(@:-ext=) & \ + cd %CD% \ + ) + $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: $(RBCONFIG) @$(MINIRUBY) $(srcdir)/win32/resource.rb \ -ruby_name=$(RUBY_INSTALL_NAME) \