pinky: fix string size calculation
[coreutils.git] / tests / GNUmakefile
blob3c178a2c8dac685162833b4ea932c16bd6b50cfc
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/.
7 .PHONY: all
8 all:
9 @echo 'tests/GNUmakefile: did you mean to make "check"?' 1>&2
10 @exit 1
12 ifeq ($(TESTS),)
13 tests =
14 else
15 tests = TESTS=$(addprefix tests/,$(TESTS))
16 endif
18 .PHONY: check
19 check:
20 cd .. && $(MAKE) $@ $(tests) SUBDIRS=.