summaryrefslogtreecommitdiff
path: root/benchmarks/lmbench/Makefile
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-09-24 08:45:00 +0000
committeragc <agc@pkgsrc.org>1998-09-24 08:45:00 +0000
commit3beed9d9c6ba51d83667921c2bdfe55e594406f9 (patch)
tree69d55c8a3309d08b1d34659eeda0e474006d853f /benchmarks/lmbench/Makefile
parentf0ce95d898151713eae8525e9c607850b214aa41 (diff)
downloadpkgsrc-3beed9d9c6ba51d83667921c2bdfe55e594406f9.tar.gz
+ Use @PREFIX@ as the pattern to substitute for ${PREFIX}
+ Cleanup the substitutions a bit. + Add a benchmark target to the package Makefile to enable the benchmark to be run.
Diffstat (limited to 'benchmarks/lmbench/Makefile')
-rw-r--r--benchmarks/lmbench/Makefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/benchmarks/lmbench/Makefile b/benchmarks/lmbench/Makefile
index 5ee582985b9..57f4f2af012 100644
--- a/benchmarks/lmbench/Makefile
+++ b/benchmarks/lmbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 1998/08/30 17:46:25 garbled Exp $
+# $NetBSD: Makefile,v 1.2 1998/09/24 08:45:00 agc Exp $
DISTNAME= lmbench-2alpha11
PKGNAME= lmbench-2.11a
@@ -14,17 +14,12 @@ USE_GMAKE= yes
USE_PERL5= yes
post-configure:
- @${MV} ${WRKSRC}/scripts/os foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/os
- @${MV} ${WRKSRC}/scripts/results foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/results
- @${MV} ${WRKSRC}/scripts/config-run foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/config-run
- @${MV} ${WRKSRC}/scripts/lmbench foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/scripts/lmbench
- @${MV} ${WRKSRC}/results/Makefile foo
- ${SED} -e 's@XXXPREFIXXXX@${PREFIX}@g' < foo > ${WRKSRC}/results/Makefile
- @${RM} -f foo
+ @cd ${WRKSRC}; \
+ for f in scripts/os scripts/results scripts/config-run \
+ scripts/lmbench results/Makefile; do \
+ ${MV} $$f $$f.in; \
+ ${SED} -e 's|@PREFIX@|${PREFIX}|g' $$f.in > $$f; \
+ done
@chmod 0755 ${WRKSRC}/scripts/config-run
@chmod 0755 ${WRKSRC}/scripts/os
@chmod 0755 ${WRKSRC}/scripts/results
@@ -33,4 +28,7 @@ post-configure:
do-install:
@${SETENV} PREFIX=${PREFIX} WRKSRC=${WRKSRC} ${SCRIPTDIR}/do-install
+benchmark:
+ @cd ${WRKSRC}/src; ${GMAKE} results
+
.include "../../mk/bsd.pkg.mk"