1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Makefile.sub: fix clean-ext

* win32/Makefile.sub (clean-ext): fix usage of for /R, and adjust
  messages as other platforms.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-07-27 01:55:58 +00:00
parent edf712bfd8
commit 9a26485e40

View file

@ -1032,14 +1032,13 @@ distclean-local::
-$(Q)$(RMDIRS) $(arch_hdrdir:/=\)\ruby
clean-ext distclean-ext realclean-ext::
!if "$(EXTS)" != ""
@for %I in ($(EXTS)) \
!else
@for /R ext %I in (.) \
!endif
@cd ext && for /R $(EXTS) %I in (.) \
do @if exist %I\Makefile ( \
cd %I && ( \
echo $(@:-ext=)ing %~nI & \
call set n=%I && \
call set n=%n:%CD%\ext\=% && \
call set n=%n:\.=% && \
call echo $(@:-ext=)ing %n:\=/% & \
$(MAKE) $(MFLAGS) $(@:-ext=) & \
cd %CD% & \
$(RMDIRS) %I \