Commit | Line | Data |
---|---|---|
d2a97fb1 KA |
1 | # |
2 | # makefile for screen package documentation | |
3 | # | |
4 | NROFF= nroff | |
5 | TROFF= vtroff | |
6 | # VFONT= 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 | .c.gr: | |
35 | ${VFONT} $*.c > $*.gr | |
36 | ||
37 | ${CSOURCE}: ${VFONT} | |
38 | troff: Master macros ${SOURCE} | |
39 | ${TROFF} -me ${TFLAGS} Master ; | |
40 | ||
41 | intro.5: ${DOCS} | |
42 | appen.B: win_st.gr | |
43 | appen.C: twinkle1.gr life.gr twinkle2.gr | |
44 | ||
45 | intro.2.tbl: intro.2 | |
46 | tbl intro.2 > intro.2.tbl | |
47 | ||
48 | appen.A.tbl: appen.A | |
49 | tbl appen.A > appen.A.tbl | |
50 | ||
51 | vfontedpr: vfontedpr.c | |
52 | ${CC} ${CFLAGS} -o vfontedpr vfontedpr.c | |
53 | ||
54 | spell: ${SOURCE} | |
55 | /bin/csh ./Spellit ${SOURCE} ${DOCS} | |
56 | ||
57 | install: | |
58 | cp Makefile ${RAW} ${BINDIR} | |
59 | ||
60 | tar: | |
61 | tar rv${TARFILE} Master ${RAW} ${CRAW} Makefile vfontedpr.c | |
62 | ||
63 | lpr: Curses | |
64 | -lpr Curses ; lpq | |
65 | -lpq | |
66 | ||
67 | clean: | |
68 | rm -f ${CSOURCE} appen.A.tbl intro.2.tbl curses.tar vfontedpr |