xref: /csrg-svn/share/doc/psd/01.cacm/Makefile (revision 27376)
1*27376Scuccia#
2*27376Scuccia# Copyright (c) 1986 Regents of the University of California.
3*27376Scuccia# All rights reserved.  The Berkeley software License Agreement
4*27376Scuccia# specifies the terms and conditions for redistribution.
5*27376Scuccia#
6*27376Scuccia#	@(#)Makefile	6.1 (Berkeley) 04/24/86
7*27376Scuccia#
8*27376ScucciaSRCS=	p.mac p1 p2 p3 p4 p5 p6
9*27376ScucciaMACROS=	-ms
10*27376ScucciaPRINTER=Pdp
11*27376ScucciaTBL=	dtbl -${PRINTER}
12*27376ScucciaTROFF=	ditroff -${PRINTER}
13*27376Scuccia
14*27376Scucciapaper:	paper.${PRINTER}
15*27376Scuccia	lpr -${PRINTER} -n paper.${PRINTER}
16*27376Scuccia
17*27376Scucciapaper.${PRINTER}: ${SRCS}
18*27376Scuccia	${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
19*27376Scuccia
20*27376Scucciaclean:
21*27376Scuccia	rm -f paper.[PT]* *.spell errs Errs make.out
22*27376Scuccia
23*27376Scucciaspell:	${SRCS}
24*27376Scuccia	@for i in ${SRCS}; do \
25*27376Scuccia		echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
26*27376Scuccia	done
27