diff options
author | hubertf <hubertf@pkgsrc.org> | 1998-12-03 01:27:04 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1998-12-03 01:27:04 +0000 |
commit | 0ddb865a760897ddd3cacb4126e797f5422868e3 (patch) | |
tree | 3fa3c2bfd0d7a166d4eed3970024e7df0a971f1a /benchmarks/lmbench | |
parent | 910aeb3ff8e3940a8de6d3b7c11671fd409aaa86 (diff) | |
download | pkgsrc-0ddb865a760897ddd3cacb4126e797f5422868e3.tar.gz |
make aware of BATCH (if interactive), uid (if benchmark needs to be run as root)
Diffstat (limited to 'benchmarks/lmbench')
-rw-r--r-- | benchmarks/lmbench/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/benchmarks/lmbench/Makefile b/benchmarks/lmbench/Makefile index 57f4f2af012..63f4c314856 100644 --- a/benchmarks/lmbench/Makefile +++ b/benchmarks/lmbench/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 1998/09/24 08:45:00 agc Exp $ +# $NetBSD: Makefile,v 1.3 1998/12/03 01:27:05 hubertf Exp $ DISTNAME= lmbench-2alpha11 PKGNAME= lmbench-2.11a @@ -28,7 +28,15 @@ post-configure: do-install: @${SETENV} PREFIX=${PREFIX} WRKSRC=${WRKSRC} ${SCRIPTDIR}/do-install +.include "../../mk/bsd.prefs.mk" + benchmark: +.if defined(BATCH) + @${ECHO} "*** This benchmark may only be run in non-batch mode" ; \ + exit 1 +.else + @if [ `id -u` != 0 ]; then echo "This benchmark must be run as root!" ; exit 1 ; fi @cd ${WRKSRC}/src; ${GMAKE} results +.endif .include "../../mk/bsd.pkg.mk" |