1# Provide a compatibility layer so that the commands used before the
2# conversion of tests/ to non-recursive make still work.  To do that, we
3# must rerun the "make check" from the parent, and with tests/ prefixed
4# onto any TESTS values.  The SUBDIRS=. is to prevent the top-level check
5# rules from descending into e.g., gnulib-test/.
6
7.PHONY: all
8all:
9	@echo 'tests/GNUmakefile: did you mean to make "check"?' 1>&2
10	@exit 1
11
12ifeq ($(TESTS),)
13tests =
14else
15tests = TESTS=$(addprefix tests/,$(TESTS))
16endif
17
18.PHONY: check
19check:
20	cd .. && $(MAKE) $@ $(tests) SUBDIRS=.
21