all: bbdb-test-results

bbdb-test-results: ../lisp bbdb-test.el
	@EMACS_PROG@ -no-site-file -no-init-file -batch -l run-tests.el >/dev/null 2>&1
	@if @GREP@ FAILED bbdb-test-results >/dev/null 2>&1; then echo "Tests failed:"; @GREP@ @GREPCONTEXT@ -n FAILED bbdb-test-results; else echo "All tests succeeded"; fi

clean:
	@RM@ bbdb-test-results
