summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-03 02:57:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-03 02:57:11 +0000
commit819e1756adfd78e25492a9492771ba4390c2af48 (patch)
treec60bdcc028b6eed23f74357e1aa7fabc7190803e /defs
parent4208d09b1a99885b7be6fe6b215ea7798c4f297f (diff)
downloadruby-819e1756adfd78e25492a9492771ba4390c2af48.tar.gz
gmake.mk: check targets depend on main
* defs/gmake.mk (TEST_DEPENDS): all check targets need the main, programs and extensions have been built. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defs')
-rw-r--r--defs/gmake.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk
index 96bb74a0a7..86fb1bbe94 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -1,13 +1,13 @@
# -*- makefile-gmake -*-
gnumake = yes
+CHECK_TARGETS := exam love check%
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 += $(if $(filter check%,$(MAKECMDGOALS)),main)
+TEST_DEPENDS += $(if $(filter $(CHECK_TARGETS),$(MAKECMDGOALS)),main)
TEST_DEPENDS += $(if $(filter all,$(INSTALLDOC)),docs)
-CHECK_TARGETS := exam love check%
ifneq ($(filter -O0 -Od,$(optflags)),)
override XCFLAGS := $(filter-out -D_FORTIFY_SOURCE=%,$(XCFLAGS))