summaryrefslogtreecommitdiff
path: root/regress/usr.bin/m4/Makefile
blob: 76c61a721baa1e0c14220b74a577472280e033b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#	$OpenBSD: Makefile,v 1.4 2000/07/02 01:21:04 espie Exp $
#	$NetBSD: Makefile,v 1.2 1999/02/13 02:54:33 lukem Exp $

NOMAN=
NOPROG=

FIBOMAX=25

CLEANFILES+= ff_after_dnl.m4 fibo.out

regress: test-ff_after_dnl test-m4wrap test-fibo

test-ff_after_dnl: ff_after_dnl.m4
	m4 ff_after_dnl.m4 | diff - ${.CURDIR}/ff_after_dnl.out

ff_after_dnl.m4: ff_after_dnl.m4.uu
	uudecode ${.CURDIR}/ff_after_dnl.m4.uu

test-m4wrap:
	m4 ${.CURDIR}/m4wrap.m4 | diff - ${.CURDIR}/m4wrap.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

.include <bsd.prog.mk>