this isn't right, but checkpoint for June tape
[unix-history] / usr / src / usr.bin / ex / USD.doc / vitut / Makefile
CommitLineData
2255cf5e 1#
17b251d5
KB
2# Copyright (c) 1986 The Regents of the University of California.
3# All rights reserved.
2255cf5e 4#
17b251d5
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile 6.2 (Berkeley) %G%
2255cf5e
KM
18#
19SRCS= vi.in vi.chars
20MACROS= -msU
21PRINTER=Pdp
22TBL= dtbl -${PRINTER}
23TROFF= ditroff -${PRINTER}
24
25paper: paper.${PRINTER} summary.${PRINTER} viapwh.${PRINTER}
26 lpr -${PRINTER} -n paper.${PRINTER}
27 lpr -${PRINTER} -n summary.${PRINTER}
28 lpr -${PRINTER} -n viapwh.${PRINTER}
29
30paper.${PRINTER}: ${SRCS}
31 ${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
32
33summary.${PRINTER}: vi.summary
34 ${TBL} vi.summary | ${TROFF} ${MACROS} -t > summary.${PRINTER}
35
36viapwh.${PRINTER}: vi.apwh.ms
37 ${TROFF} ${MACROS} -t vi.viapwh > viapwh.${PRINTER}
38
39clean:
40 rm -f paper.[PT]* summary.[PT]* viapwh.[PT]* *.spell errs Errs make.out
41
42spell: ${SRCS}
43 @for i in ${SRCS}; do \
44 echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
45 done