File: GNUmakefile

package info (click to toggle)
coreutils 9.7-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 67,780 kB
  • sloc: ansic: 243,477; sh: 29,063; perl: 7,908; yacc: 1,858; makefile: 196; python: 47; sed: 16
file content (20 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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=.