1#
2# Copyright (c) 1988 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) 07/27/88
7#
8SRCS=	kernmalloc.t appendix.t
9FIGS=	alloc.fig usage.tbl
10MACROS=	-ms
11PRINTER=lz
12SOELIM=	soelim
13TBL=	dtbl -P${PRINTER}
14EQN=	deqn -P${PRINTER}
15PIC=	pic -P${PRINTER}
16GRIND=	vgrind -f
17TROFF=	ditroff -P${PRINTER} ${MACROS}
18
19print: paper.${PRINTER}
20	lpr -P${PRINTER} -n paper.${PRINTER}
21
22paper.${PRINTER}: ${SRCS} ${FIGS}
23	${SOELIM} ${SRCS} | ${TBL} | ${PIC} | ${EQN} | ${GRIND} | \
24		${TROFF} -t ${PAGES} - >paper.${PRINTER}
25
26clean:
27	rm -f paper.${PRINTER} paper.[PT]* *.spell errs Errs make.out
28
29spell:	${SRCS}
30	@for i in ${SRCS}; do \
31		echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
32	done
33