Commit | Line | Data |
---|---|---|
f60ed71d KA |
1 | # |
2 | # makefile for screen package documentation | |
3 | # | |
4 | NROFF= nroff | |
5 | TROFF= vtroff | |
6 | VFONT= /usr/lib/vfontedpr | |
7 | NFLAGS= -Tcrt | |
8 | TFLAGS= | |
9 | CFLAGS= -O -n -s | |
10 | BINDIR= /usr/doc/curses | |
11 | TARFILE=cf curdoc.tar | |
12 | ||
13 | DOCS= doc.I doc.II doc.III doc.IV | |
14 | RAW= macros c_macros appen.B appen.A appen.C disclaim intro.0 intro.1 \ | |
15 | intro.2 intro.3 intro.4 intro.5 ${DOCS} curses.3 | |
16 | ||
17 | CRAW= win_st.c twinkle1.c twinkle2.c life.c | |
18 | CSOURCE=win_st.gr twinkle1.gr twinkle2.gr life.gr | |
19 | SOURCE= macros appen.A.tbl appen.B appen.C disclaim intro.0 intro.1 \ | |
20 | intro.2.tbl intro.3 intro.4 intro.5 | |
21 | ||
22 | #.SUFFIXES: | |
23 | #.SUFFIXES: .c .gr | |
24 | ||
25 | # | |
26 | # this section formats C input source into nice troffable (or nroffable) | |
27 | # versions. It uses the capabilites of "vgrind", which sets keywords in | |
28 | # bold font, and comments in italics. | |
29 | # | |
30 | ||
31 | Curses.doc: ${VFONT} Master macros ${SOURCE} | |
32 | ${NROFF} -me ${NFLAGS} Master > Curses.doc | |
33 | ||
34 | # Don't re-run vgrind unless you want to patch the output files. | |
35 | #.c.gr: | |
36 | # ${VFONT} $*.c > $*.gr | |
37 | ||
38 | ${CSOURCE}: ${VFONT} | |
39 | troff: Master macros ${SOURCE} | |
40 | ${TROFF} -me ${TFLAGS} Master ; | |
41 | ||
42 | intro.5: ${DOCS} | |
43 | appen.B: win_st.gr | |
44 | appen.C: twinkle1.gr life.gr twinkle2.gr | |
45 | ||
46 | intro.2.tbl: intro.2 | |
47 | tbl intro.2 > intro.2.tbl | |
48 | ||
49 | appen.A.tbl: appen.A | |
50 | tbl appen.A > appen.A.tbl | |
51 | ||
52 | vfontedpr: vfontedpr.c | |
53 | ${CC} ${CFLAGS} -o vfontedpr vfontedpr.c | |
54 | ||
55 | spell: ${SOURCE} | |
56 | /bin/csh ./Spellit ${SOURCE} ${DOCS} | |
57 | ||
58 | install: | |
59 | cp Makefile ${RAW} ${BINDIR} | |
60 | ||
61 | tar: | |
62 | tar rv${TARFILE} Master ${RAW} ${CRAW} Makefile vfontedpr.c | |
63 | ||
64 | lpr: Curses | |
65 | -lpr Curses ; lpq | |
66 | -lpq | |
67 | ||
68 | clean: | |
69 | rm -f ${CSOURCE} appen.A.tbl intro.2.tbl curses.tar vfontedpr |