1/*
2 * Jmakefile for regression test suite.
3 */
4
5;# $Id: Jmakefile,v 3.0 1993/11/29 13:49:20 ram Exp ram $
6;#
7;#  Copyright (c) 1990-2006, Raphael Manfredi
8;#
9;#  You may redistribute only under the terms of the Artistic License,
10;#  as specified in the README file that comes with the distribution.
11;#  You may reuse parts of this distribution only within the terms of
12;#  that same Artistic License; a copy of which may be found at the root
13;#  of the source tree for mailagent 3.0.
14;#
15;# $Log: Jmakefile,v $
16;# Revision 3.0  1993/11/29  13:49:20  ram
17;# Baseline for mailagent 3.0 netwide release.
18;#
19
20>RM
21all::
22	@echo "The following may take a while..."
23	@echo "Don't panic if any of these tests fails and do not stop make."; \
24	./TEST
25	@if test -f OK; then \
26		echo "Failure detected, retrying one more time, just in case..."; \
27		echo "Successful tests will not be rerun but flagged as 'done'."; \
28		sleep 2; \
29		./TEST; \
30		if test -f OK; then \
31			echo "Hmm... Still failed... There might be a real problem."; \
32			echo "I shall be using the plain (non dataloaded) version."; \
33			sleep 2;\
34			./TEST -n; \
35		fi \
36	fi
37
38test:
39	./TEST -i
40
41local_clean::
42	$(RM) -r out
43	$(RM) OK
44