blob: 4c78a10fb95c20c377ce3daf41f4f7d66098ab09 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $OpenBSD: Makefile,v 1.12 2001/10/10 11:16:28 espie Exp $
# $NetBSD: Makefile,v 1.2 1999/02/13 02:54:33 lukem Exp $
NOMAN=
NOPROG=
FIBOMAX=25
M4=m4
.SUFFIXES: .m4 .m4.uu
CLEANFILES+= ff_after_dnl.m4 strangequotes.m4 fibo.out
ALL_TESTS= test-ff_after_dnl test-m4wrap test-m4wrap2 test-fibo \
test-patterns trip test-strangequotes test-redef test-quotes \
test-weird
regress: ${ALL_TESTS}
test-ff_after_dnl: ff_after_dnl.m4
${M4} ff_after_dnl.m4 | diff - ${.CURDIR}/ff_after_dnl.out
.m4.uu.m4:
uudecode $<
test-m4wrap:
${M4} ${.CURDIR}/m4wrap.m4 | diff - ${.CURDIR}/m4wrap.out
test-m4wrap2:
test `${M4} ${.CURDIR}/m4wrap2.m4 | wc -c` == 0
test-patterns:
${M4} ${.CURDIR}/patterns.m4 | diff - ${.CURDIR}/patterns.out
fibo.out:
perl ${.CURDIR}/fibo.pl ${FIBOMAX} >$@
test-fibo: fibo.out
${M4} -DN=${FIBOMAX} ${.CURDIR}/fibo.m4| diff - fibo.out
trip:
echo "undefine(\`errprint')"|MALLOC_OPTIONS=A ${M4} -Derrprint=a >/dev/null
test-quotes:
${M4} ${.CURDIR}/quotes.m4 2>&1| \
sed -e 's,\( *\).*/quotes.m4,\1quotes.m4,' | \
diff - ${.CURDIR}/quotes.out
${M4} -g ${.CURDIR}/quotes.m4 2>&1|diff - ${.CURDIR}/quotes.gnu.out
test-strangequotes: strangequotes.m4
${M4} strangequotes.m4| diff - ${.CURDIR}/strangequotes.out
test-redef:
${M4} ${.CURDIR}/redef.m4 | diff - ${.CURDIR}/redef.out
test-weird:
test `${M4} ${.CURDIR}/weird,name.m4 | wc -c` == 0
.PHONY: ${ALL_TESTS}
.include <bsd.prog.mk>
|