pkgsrc/benchmarks/bytebench/Makefile
garbled f544fc14ed Fix all the benchmark targets so they work properly, and work with the
package uninstalled, with the exceptionof lmbench.  Make non-batch
targets for all the benchmarks, and create a results target which
places all the results in /tmp for easier collection.
1998-12-26 15:59:54 +00:00

29 lines
947 B
Makefile

# $NetBSD: Makefile,v 1.4 1998/12/26 15:59:55 garbled Exp $
DISTNAME= byte
PKGNAME= bytebench-3.6
CATEGORIES= benchmarks
MASTER_SITES= ftp://ftp.cdrom.com/pub/unix-c/benchmarks/
MAINTAINER= root@garbled.net
post-patch:
${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/Run >${WRKSRC}/run-byte
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pgms/* ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/bytebench
${MKDIR} ${PREFIX}/share/doc/bytebench
${INSTALL_DATA} ${WRKSRC}/testdir/* ${PREFIX}/share/bytebench
${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/bytebench
${INSTALL_SCRIPT} ${WRKSRC}/run-byte ${PREFIX}/bin
benchmark:
@if [ `id -u` != 0 ]; then echo "This benchmark must be run as root!" ; exit 1 ; fi
@${WRKSRC}/run-byte | tee ${WRKSRC}/bytebench.out
results:
-@${MKDIR} /tmp/benches/`domainname`
-@cp ${WRKSRC}/bytebench.out /tmp/benches/`domainname`/bytebench.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"