xref: /original-bsd/share/doc/papers/sysperf/Makefile (revision 9eb838fd)
1#
2# Copyright (c) 1985 Regents of the University of California.
3# All rights reserved.  The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6#	@(#)Makefile	1.3 (Berkeley) 05/01/89
7#
8PRINTER=-Plz
9TYPE=	-n
10SRCS=	0.t 1.t 2.t 3.t 4.t 5.t 6.t 7.t
11OBJS=	perf.t appendix.t
12TBL=	dtbl
13EQN=	deqn
14TROFF=	ditroff
15GRIND=	vgrind
16
17paper:	perf
18	lpr ${PRINTER} ${TYPE} perf
19
20perf:	${OBJS}
21	${TROFF} -ms -t ${PRINTER} ${OBJS} > perf
22
23perf.t:	${SRCS}
24	${TBL} ${PRINTER} ${SRCS} | ${EQN} ${PRINTER} > perf.t
25
26appendix.t: a1.t a2.t
27	${GRIND} -f a1.t |  awk '/\.\(\)/{ cnt = 2 } \
28	   { if (cnt) cnt -= 1; else print $$0; } ' > appendix.t
29	${GRIND} -f -lcsh a2.t |  awk '/\.\(\)/{ cnt = 2 } \
30	   { if (cnt) cnt -= 1; else print $$0; } ' >> appendix.t
31
32clean:
33	rm -f perf ${OBJS}
34