From 08ba9a27ff3da67d7a8cea05fad214f569badda5 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 27 Jul 2015 01:55:58 +0000 Subject: 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 --- win32/Makefile.sub | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'win32/Makefile.sub') diff --git a/win32/Makefile.sub b/win32/Makefile.sub index afcb29cd44..75a606549a 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -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 \ -- cgit v1.2.3