summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1999-01-02 02:26:34 +0000
committerhubertf <hubertf@pkgsrc.org>1999-01-02 02:26:34 +0000
commit9f103385079b4d38a22067bbb49e35ca8dc85bed (patch)
treefb717ba0024677cfa2887ae33c817525f5a3579a /benchmarks
parent31e54dc4e1f069d6222eece4ec446fc036c769c7 (diff)
downloadpkgsrc-9f103385079b4d38a22067bbb49e35ca8dc85bed.tar.gz
work around PREFIX not being defined for exist()
Diffstat (limited to 'benchmarks')
-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`