summaryrefslogtreecommitdiff
path: root/benchmarks/benchfft/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/benchfft/Makefile')
-rw-r--r--benchmarks/benchfft/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/benchmarks/benchfft/Makefile b/benchmarks/benchfft/Makefile
index 1be6e338a1e..9a9f9b3563d 100644
--- a/benchmarks/benchfft/Makefile
+++ b/benchmarks/benchfft/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1998/12/03 01:27:04 hubertf Exp $
+# $NetBSD: Makefile,v 1.3 1998/12/26 15:59:55 garbled Exp $
DISTNAME= benchfft-2.0
CATEGORIES= benchmarks math
@@ -27,12 +27,21 @@ do-install:
benchmark:
.if defined(BATCH)
- @${ECHO} "*** This benchmark may only be run in non-batch mode" ; \
- exit 1
+ @${ECHO} "*** This benchmark should be run in non-batch mode"
+ @${SED} -e 's|bench-fft|./bench|g' <${WRKSRC}/submit-script> ${WRKSRC}/run_bench
+ @chmod 755 ${WRKSRC}/run_bench
+ @${SED} -e 's|@machine@|'`uname -m`'|' \
+ ${FILESDIR}/setup.answers | (cd ${WRKSRC} ; ./run_bench)
.else
- @${WRKSRC}/submit-script
+ @${SED} -e 's|bench-fft|./bench|g' <${WRKSRC}/submit-script> ${WRKSRC}/run_bench
+ @chmod 755 ${WRKSRC}/run_bench
+ @(cd ${WRKSRC} ; ./run_bench)
@${ECHO} ${PKGNAME} results:
${CAT} submit.txt
.endif
+results:
+ -@${MKDIR} /tmp/benches/`domainname`
+ -@cp ${WRKSRC}/submit.txt /tmp/benches/`domainname`/fft.`uname`-`uname -m`-`uname -r`.`hostname`
+
.include "../../mk/bsd.pkg.mk"