summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-12-10 11:18:38 +0900
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2024-12-10 12:31:47 +0900
commitf12e2622c1d3a438cbae6afdadf824e228207ae6 (patch)
treeec571724cb5bf297c2aa117d662dd57754679b68 /win32
parentce2f3983868308fd330d4134e66e46b0a82c666b (diff)
Split system dependent commands to clean modular-gc
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12300
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 46b50e9df0..86ecfc88fd 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1295,6 +1295,11 @@ ext/distclean gems/distclean ext/realclean gems/realclean::
do $(Q)(del %I & rmdir %~dpI)) || @
-$(Q)rmdir $(@D) 2> nul || @
+gc/clean gc/distclean gc/realclean::
+ - for /D %G in (gc\*) do (pushd %G && $(MAKE) TARGET_SO_DIR=./ $(@F) & popd) || $(NULLCMD)
+gc/distclean gc/realclean::
+ - for /D %G in (gc\*) do ($(RMDIR) %G) || $(NULLCMD)
+
clean-enc distclean-enc realclean-enc:
!if exist($(ENC_MK))
$(ECHO) $(@:-enc=ing) encodings