1define RUN_TESTS 2 @for TEST in $(TEST_PROGS); do \ 3 (./$$TEST && echo "selftests: $$TEST [PASS]") || echo "selftests: $$TEST [FAIL]"; \ 4 done; 5endef 6 7run_tests: all 8 $(RUN_TESTS) 9 10.PHONY: run_tests all clean 11