aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-13 15:34:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-13 15:34:08 +0000
commitbd8cb9f5d268881a49819a1996d3dffdb951168e (patch)
tree72548dacb3a0e1d8d93ef048ef975a5e08bca615 /win32
parent4844a449405060892db4c407b12f141364d3142d (diff)
downloadruby-bd8cb9f5d268881a49819a1996d3dffdb951168e.tar.gz
Parenthesize `for` to ignore errors
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub8
1 files changed, 4 insertions, 4 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index e1298db92c..6b51a6c51c 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1192,7 +1192,7 @@ ext/clean.mk ext/distclean.mk ext/realclean.mk::
$(Q)if exist $(EXTS_MK) $(MAKE) -k -f $(EXTS_MK) top_srcdir=$(srcdir) $(*F)
ext/clean gems/clean ext/distclean gems/distclean ext/realclean gems/realclean::
- $(Q)cd $(@D) && for /R $(EXTS) %I in (.) \
+ $(Q)cd $(@D) 2>nul && (for /R $(EXTS) %I in (.) \
do $(Q)if exist %I\Makefile ( \
cd %I && ( \
call set n=%I && \
@@ -1202,11 +1202,11 @@ ext/clean gems/clean ext/distclean gems/distclean ext/realclean gems/realclean::
$(MAKE) $(MFLAGS) $(@F) & \
cd %CD% & \
$(RMDIRS) %I \
- ) ) || @
+ ))) || @
ext/distclean gems/distclean ext/realclean gems/realclean::
- $(Q)cd $(@D) && for /R $(EXTS) %I in (exts.mk*) \
- do $(Q)(del %I & rmdir %~dpI)
+ $(Q)cd $(@D) 2>nul && (for /R $(EXTS) %I in (exts.mk*) \
+ do $(Q)(del %I & rmdir %~dpI)) || @
-$(Q)rmdir $(@D) 2> nul || @
clean-enc distclean-enc realclean-enc: