summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-07 07:08:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-07 07:08:06 +0000
commitb1f4bf8aa272ffb291ece376b19fc205b1ec06f2 (patch)
treec881c1d86437542f93adfb236a8bb2ef8329cff4 /common.mk
parent8572ed5c0d98a8edaee7e0e433d632c3ca3f5821 (diff)
common.mk: integrate clean targets
* common.mk (clean-rdoc, clean-capi, clean-platform): integrate from Makefile.in and win32/Makefile.sub. * win32/Makefile.sub (RMALL): now use rm.bat instead of rmall.bat which does not handle any options and convert slashes. * win32/rmall.bat: no longer used. use rm.bat with -r instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index de694c461e..52c2a9f77b 100644
--- a/common.mk
+++ b/common.mk
@@ -498,6 +498,18 @@ clean-ext distclean-ext realclean-ext::
clean-enc distclean-enc realclean-enc: PHONY
+clean-rdoc distclean-rdoc realclean-rdoc:
+ @echo $(@:-rdoc=ing) rdoc
+ $(Q)$(RMALL) $(RDOCOUT)
+
+clean-capi distclean-capi realclean-capi:
+ @echo $(@:-capi=ing) capi
+ $(Q)$(RMALL) $(CAPIOUT)
+
+clean-platform:
+ $(Q) $(RM) $(PLATFORM_D)
+ -$(Q) $(RMDIR) $(PLATFORM_DIR) 2> /dev/null || exit 0
+
check: main test test-all
$(ECHO) check succeeded
check-ruby: test test-ruby