Skip to content

Commit b563be3

Browse files
committed
Win32: Clean empty directories
1 parent 0be626e commit b563be3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

win32/Makefile.sub

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,8 +1234,7 @@ ext/clean.sub ext/distclean.sub ext/realclean.sub \
12341234
))) || $(NULLCMD)
12351235

12361236
ext/distclean ext/realclean .bundle/distclean .bundle/realclean::
1237-
$(Q)cd $(@D) 2>nul && (for /R $(EXTS) %I in (exts.mk*) \
1238-
do $(Q)(del %I & rmdir %~dpI)) || $(NULLCMD)
1237+
$(Q)(for /D /R $(@D) %I in (.) do $(Q)$(RMDIRS) %I) || $(NULLCMD)
12391238

12401239
.bundle/distclean .bundle/realclean::
12411240
$(Q)for /D %I in ($(@D)\*) do $(Q)$(RMDIRS) %I || $(NULLCMD)

0 commit comments

Comments
 (0)