summaryrefslogtreecommitdiff
path: root/share/doc/papers/sysperf/Makefile
blob: 79f75770a793fcb12767cf4333e2a0d8ed985114 (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
#	$OpenBSD: Makefile,v 1.3 2004/02/01 14:22:45 jmc Exp $


DIR=	papers/sysperf
MACROS= -ms
SRCS=	0.t 1.t 2.t 3.t 4.t 5.t 6.t 7.t
EXTRA=	a1.t a2.t
OBJS=	paper.tmp appendix.tmp
CLEANFILES+=${OBJS}

paper.ps: ${OBJS}
	${ROFF} ${OBJS} > ${.TARGET}
paper.txt: ${OBJS}
	${ROFF} -Tascii ${OBJS} > ${.TARGET}

paper.tmp: ${SRCS}
	${TBL} ${SRCS} | ${EQN} > paper.tmp

appendix.tmp: a1.t a2.t
	${GRIND} -f a1.t |  awk '/\.\(\)/{ cnt = 2 } \
	   { if (cnt) cnt -= 1; else print $$0; } ' > appendix.tmp
	${GRIND} -f -lcsh a2.t |  awk '/\.\(\)/{ cnt = 2 } \
	   { if (cnt) cnt -= 1; else print $$0; } ' >> appendix.tmp

.include <bsd.doc.mk>