mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
The README-documented way to run individual tests was invalidated by the conversion of tests/ to non-recursive make. Add a GNUmakefile shim to reenable that usage. * tests/GNUmakefile: New file, so that "make -C tests ..." works like it did before the conversion of tests/ to non-recursive build. Reported by Bernhard Voelker. * Makefile.am (EXTRA_DIST): Add it. * cfg.mk (sc_prohibit_tab_based_indentation): Also exempt any GNUmakefile from this syntax-check.
21 lines
569 B
Makefile
21 lines
569 B
Makefile
# Provide a compatibility layer so that the commands used before the
|
|
# conversion of tests/ to non-recursive make still work. To do that, we
|
|
# must rerun the "make check" from the parent, and with tests/ prefixed
|
|
# onto any TESTS values. The SUBDIRS=. is to prevent the top-level check
|
|
# rules from descending into e.g., gnulib-test/.
|
|
|
|
.PHONY: all
|
|
all:
|
|
@echo 'tests/GNUmakefile: did you mean to make "check"?' 1>&2
|
|
@exit 1
|
|
|
|
ifeq ($(TESTS),)
|
|
tests =
|
|
else
|
|
tests = TESTS=$(addprefix tests/,$(TESTS))
|
|
endif
|
|
|
|
.PHONY: check
|
|
check:
|
|
cd .. && $(MAKE) $@ $(tests) SUBDIRS=.
|