Commit | Line | Data |
---|---|---|
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 | # |
19 | SRCS= vi.in vi.chars | |
20 | MACROS= -msU | |
21 | PRINTER=Pdp | |
22 | TBL= dtbl -${PRINTER} | |
23 | TROFF= ditroff -${PRINTER} | |
24 | ||
25 | paper: 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 | ||
30 | paper.${PRINTER}: ${SRCS} | |
31 | ${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER} | |
32 | ||
33 | summary.${PRINTER}: vi.summary | |
34 | ${TBL} vi.summary | ${TROFF} ${MACROS} -t > summary.${PRINTER} | |
35 | ||
36 | viapwh.${PRINTER}: vi.apwh.ms | |
37 | ${TROFF} ${MACROS} -t vi.viapwh > viapwh.${PRINTER} | |
38 | ||
39 | clean: | |
40 | rm -f paper.[PT]* summary.[PT]* viapwh.[PT]* *.spell errs Errs make.out | |
41 | ||
42 | spell: ${SRCS} | |
43 | @for i in ${SRCS}; do \ | |
44 | echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \ | |
45 | done |