SUBDIRS = regress0
DIST_SUBDIRS = regress0 regress1 regress2 regress3
+@mk_include@ @srcdir@/Makefile.levels
+
MAKEFLAGS = -k
export VERBOSE = 1
regress0 regress1 regress2 regress3:
-cd $@ && $(MAKE) check
-# synonyms for "check" in this directory in this directory
+# synonyms for "check" in this directory
.PHONY: regress test
regress test: check
--- /dev/null
+# This Makefile fragment allows one to use "make check" but also specify
+# a regression level.
+ifeq ($(REGRESSION_LEVEL),1)
+SUBDIRS += regress1
+endif
+ifeq ($(REGRESSION_LEVEL),2)
+SUBDIRS += regress1 regress2
+endif
+ifeq ($(REGRESSION_LEVEL),3)
+SUBDIRS += regress1 regress2 regress3
+endif