mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
6b7478c4bd
* defs/gmake.mk (test-all, test-ruby): depends on test-knownbug if check is given or with test-knownbug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
28 lines
1.2 KiB
Makefile
28 lines
1.2 KiB
Makefile
TEST_TARGETS := $(filter check test check% test% btest%,$(MAKECMDGOALS))
|
|
TEST_TARGETS += $(subst check,test-all,$(patsubst check-%,test-%,$(TEST_TARGETS)))
|
|
TEST_TARGETS := $(patsubst test-%,yes-test-%,$(patsubst btest-%,yes-btest-%,$(TEST_TARGETS)))
|
|
TEST_DEPENDS := $(if $(TEST_TARGETS),$(filter all main exts,$(MAKECMDGOALS)))
|
|
TEST_DEPENDS += $(TEST_DEPENDS) $(if $(filter check%,$(MAKECMDGOALS)),main)
|
|
|
|
ifneq ($(filter check% test,$(MAKECMDGOALS)),)
|
|
yes-test-knownbug: $(TEST_DEPENDS) yes-btest-ruby
|
|
yes-btest-ruby: $(TEST_DEPENDS) yes-test-sample
|
|
yes-test-sample: $(TEST_DEPENDS)
|
|
endif
|
|
ifneq ($(filter check%,$(MAKECMDGOALS)) $(filter test-all,$(TEST_TARGETS)),)
|
|
yes-test-all yes-test-ruby: $(filter-out %test-all %test-ruby check%,$(TEST_TARGETS))
|
|
endif
|
|
ifneq ($(filter check%,$(MAKECMDGOALS))$(if $(filter test-all,$(MAKECMDGOALS)),$(filter test-knownbug,$(MAKECMDGOALS))),)
|
|
yes-test-all yes-test-ruby: yes-test-knownbug
|
|
endif
|
|
|
|
$(TEST_TARGETS): $(TEST_DEPENDS)
|
|
|
|
ifneq ($(if $(filter install,$(MAKECMDGOALS)),$(filter uninstall,$(MAKECMDGOALS))),)
|
|
install-targets := $(filter install uninstall,$(MAKECMDGOALS))
|
|
$(word 1,$(install-targets)): $(word 0,$(install-targets))
|
|
endif
|
|
|
|
ifneq ($(filter reinstall,$(MAKECMDGOALS)),)
|
|
install: uninstall
|
|
endif
|