summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-24 04:34:00 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-24 04:34:00 (GMT)
commit8c8e72fb8bf316850a3b8b5ca5f149f59b0c1449 (patch)
treed428f1b5cb7e6e109f222501bf2b593db3686b40 /defs
parent65cec46e40132b84f1b3a725a136955e0be602df (diff)
Add clean-srcs
Add `clean-srcs` target to clean sources in the build directory, and `realclean-srcs` target to clean autogenerated sources in the source directory. Also `realclean-srcs-extra` target to clean sources which are generatable but need to install extra commands, in addition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defs')
-rw-r--r--defs/gmake.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk
index feefd2d..b21fe93 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -193,3 +193,9 @@ rdoc\:%: PHONY
test_%.rb test/%: programs PHONY
+$(Q)$(exec) $(RUNRUBY) "$(srcdir)/test/runner.rb" --ruby="$(RUNRUBY)" $(TEST_EXCLUDES) $(TESTOPTS) $(patsubst test/%,%,$@)
+
+clean-srcs-ext::
+ $(Q)$(RM) $(patsubst $(srcdir)/%,%,$(EXT_SRCS))
+
+clean-srcs-extra::
+ $(Q)$(RM) $(patsubst $(srcdir)/%,%,$(EXTRA_SRCS))