Merge "Enable smack build configuration option on commandline fix rpmlint errors...
[platform/upstream/coreutils.git] / tests / GNUmakefile
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
8 all:
9         @echo 'tests/GNUmakefile: did you mean to make "check"?' 1>&2
10         @exit 1
11
12 ifeq ($(TESTS),)
13 tests =
14 else
15 tests = TESTS=$(addprefix tests/,$(TESTS))
16 endif
17
18 .PHONY: check
19 check:
20         cd .. && $(MAKE) $@ $(tests) SUBDIRS=.