summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.mk2
-rw-r--r--defs/gmake.mk7
2 files changed, 8 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index e6fd941..5cfc1f3 100644
--- a/common.mk
+++ b/common.mk
@@ -1013,6 +1013,8 @@ info-arch: PHONY
change: PHONY
$(BASERUBY) -C "$(srcdir)" ./tool/change_maker.rb $(CHANGES) > change.log
+fool: check test-rubyspec
+
love: sudo-precheck up all test install test-all
@echo love is all you need
diff --git a/defs/gmake.mk b/defs/gmake.mk
index 3d10083..13e0227 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -7,7 +7,7 @@ TEST_TARGETS := $(patsubst test-%,yes-test-%,$(patsubst btest-%,yes-btest-%,$(TE
TEST_DEPENDS := $(if $(TEST_TARGETS),$(filter all main exts,$(MAKECMDGOALS)))
TEST_DEPENDS += $(if $(filter check%,$(MAKECMDGOALS)),main)
TEST_DEPENDS += $(if $(filter all,$(INSTALLDOC)),docs)
-CHECK_TARGETS := love check%
+CHECK_TARGETS := fool love check%
ifneq ($(filter -O0 -Od,$(optflags)),)
override XCFLAGS := $(filter-out -D_FORTIFY_SOURCE=%,$(XCFLAGS))
@@ -64,6 +64,11 @@ install-prereq: uninstall
uninstall sudo-precheck: all $(if $(filter all,$(INSTALLDOC)),docs)
endif
+ifneq ($(filter fool,$(MAKECMDGOALS)),)
+test-rubyspec: check
+yes-test-all no-test-all: test
+endif
+
ifneq ($(filter love,$(MAKECMDGOALS)),)
showflags: up
sudo-precheck: test