xref: /original-bsd/share/doc/psd/20.ipctut/Makefile (revision a806a748)
1#
2# Copyright (c) 1986 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	6.2 (Berkeley) 05/06/86
7#
8SRCS=	tutor.me
9GSRCS=	gremlins
10MACROS=	-me
11PRINTER=Pdp
12SOELIM=	soelim
13TBL=	dtbl -${PRINTER}
14TROFF=	ditroff -${PRINTER}
15
16paper:	paper.${PRINTER} pics.Pip
17	lpr -${PRINTER} -n paper.${PRINTER}
18	lpr -Pip -n pics.Pip
19
20paper.${PRINTER}: ${SRCS}
21	${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
22
23pics.Pip: ${GSRCS}
24	grn -Pip ${GSRCS} | ditroff -Pip -t >pics.Pip
25
26clean:
27	rm -f 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