summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-27 01:55:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-27 01:55:58 +0000
commit9a26485e40b83d9b4cdd7556e144552b54695830 (patch)
tree7081516b9eb1778260e9bce7619209d5ea280f50 /win32
parentedf712bfd8fcc44cf55232cd5f6eaec32f69ae2e (diff)
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
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub11
1 files changed, 5 insertions, 6 deletions
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 \