summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf>1999-01-02 02:26:34 +0000
committerhubertf <hubertf>1999-01-02 02:26:34 +0000
commita64387ff63a9203e00089d7e42547572ebbf3948 (patch)
treefb717ba0024677cfa2887ae33c817525f5a3579a
parent783b2da6f930e942e46710007c54cc7116a662bd (diff)
downloadpkgsrc-a64387ff63a9203e00089d7e42547572ebbf3948.tar.gz
work around PREFIX not being defined for exist()
-rw-r--r--benchmarks/lmbench/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/benchmarks/lmbench/Makefile b/benchmarks/lmbench/Makefile
index f443872a125..6bb2b860736 100644
--- a/benchmarks/lmbench/Makefile
+++ b/benchmarks/lmbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 1998/12/26 15:59:56 garbled Exp $
+# $NetBSD: Makefile,v 1.5 1999/01/02 02:26:34 hubertf Exp $
DISTNAME= lmbench-2alpha11
PKGNAME= lmbench-2.11a
@@ -31,7 +31,10 @@ do-install:
.include "../../mk/bsd.prefs.mk"
benchmark:
-.if exists(${PREFIX}/bin/lmbench/hello)
+ if [ ! -f ${PREFIX}/bin/lmbench/hello ]; then \
+ @${ECHO} "*** This benchmark must be installed to run" ; \
+ exit 1 ; \
+ fi
.if defined(BATCH)
@${ECHO} "*** This benchmark should only be run in non-batch mode" ; \
if [ `id -u` != 0 ]; then echo "This benchmark must be run as root!" ; exit 1 ; fi ; \
@@ -41,10 +44,6 @@ benchmark:
@if [ `id -u` != 0 ]; then echo "This benchmark must be run as root!" ; exit 1 ; fi
@cd ${WRKSRC}/src; ${GMAKE} results
.endif
-.else
- @${ECHO} "*** This benchmark must be installed to run" ; \
- exit 1
-.endif
results:
-@${MKDIR} /tmp/benches/`domainname`