summaryrefslogtreecommitdiff
path: root/regress/usr.bin/m4/Makefile
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-07-01 14:18:40 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-07-01 14:18:40 +0000
commita55f8147fae5d3bdf88f83dde846350d7d968138 (patch)
tree76109b620e157ac209f2060d4334eeef11057736 /regress/usr.bin/m4/Makefile
parent55d7285dc37b52c197b83bd8c4a938c486012a9b (diff)
Small perl script to create fibo.out.
length parameter to try to push fibo.m4 further.
Diffstat (limited to 'regress/usr.bin/m4/Makefile')
-rw-r--r--regress/usr.bin/m4/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/regress/usr.bin/m4/Makefile b/regress/usr.bin/m4/Makefile
index a3742b22cf4..0d4ac42bdcc 100644
--- a/regress/usr.bin/m4/Makefile
+++ b/regress/usr.bin/m4/Makefile
@@ -1,10 +1,12 @@
-# $OpenBSD: Makefile,v 1.2 2000/07/01 00:49:07 espie Exp $
+# $OpenBSD: Makefile,v 1.3 2000/07/01 14:18:39 espie Exp $
# $NetBSD: Makefile,v 1.2 1999/02/13 02:54:33 lukem Exp $
NOMAN=
NOPROG=
-CLEANFILES+= ff_after_dnl.m4
+FIBOMAX=12
+
+CLEANFILES+= ff_after_dnl.m4 fibo.out
regress: test-ff_after_dnl test-m4wrap test-fibo
@@ -17,8 +19,11 @@ ff_after_dnl.m4: ff_after_dnl.m4.uu
test-m4wrap:
m4 ${.CURDIR}/m4wrap.m4 | diff - ${.CURDIR}/m4wrap.out
-test-fibo:
- m4 ${.CURDIR}/fibo.m4 | diff - ${.CURDIR}/fibo.out
+fibo.out:
+ perl ${.CURDIR}/fibo.pl ${FIBOMAX} >$@
+
+test-fibo: fibo.out
+ m4 -DN=${FIBOMAX} ${.CURDIR}/fibo.m4| diff - fibo.out
.PHONY: test-ff_after_dnl test-m4wrap test-fibo