From 1e38c33743bdad5e0dd20821f8c999592a4ab5cc Mon Sep 17 00:00:00 2001 From: hubertf Date: Thu, 3 Dec 1998 01:27:04 +0000 Subject: make aware of BATCH (if interactive), uid (if benchmark needs to be run as root) --- benchmarks/benchfft/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'benchmarks/benchfft') diff --git a/benchmarks/benchfft/Makefile b/benchmarks/benchfft/Makefile index ad5b3a027f8..1be6e338a1e 100644 --- a/benchmarks/benchfft/Makefile +++ b/benchmarks/benchfft/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 1998/10/21 19:35:56 garbled Exp $ +# $NetBSD: Makefile,v 1.2 1998/12/03 01:27:04 hubertf Exp $ DISTNAME= benchfft-2.0 CATEGORIES= benchmarks math @@ -23,7 +23,16 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bench ${PREFIX}/bin/bench-fft ${INSTALL_SCRIPT} ${WRKSRC}/submit-script ${PREFIX}/bin/run-fftbench +.include "../../mk/bsd.prefs.mk" + benchmark: +.if defined(BATCH) + @${ECHO} "*** This benchmark may only be run in non-batch mode" ; \ + exit 1 +.else @${WRKSRC}/submit-script + @${ECHO} ${PKGNAME} results: + ${CAT} submit.txt +.endif .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3