GNUmakefile 569 B

123456789101112131415161718192021
  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. .PHONY: all
  7. all:
  8. @echo 'tests/GNUmakefile: did you mean to make "check"?' 1>&2
  9. @exit 1
  10. ifeq ($(TESTS),)
  11. tests =
  12. else
  13. tests = TESTS=$(addprefix tests/,$(TESTS))
  14. endif
  15. .PHONY: check
  16. check:
  17. cd .. && $(MAKE) $@ $(tests) SUBDIRS=.