BSD 4_2 development
[unix-history] / usr / doc / curses / makefile
CommitLineData
f60ed71d
KA
1#
2# makefile for screen package documentation
3#
4NROFF= nroff
5TROFF= vtroff
6VFONT= /usr/lib/vfontedpr
7NFLAGS= -Tcrt
8TFLAGS=
9CFLAGS= -O -n -s
10BINDIR= /usr/doc/curses
11TARFILE=cf curdoc.tar
12
13DOCS= doc.I doc.II doc.III doc.IV
14RAW= 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
17CRAW= win_st.c twinkle1.c twinkle2.c life.c
18CSOURCE=win_st.gr twinkle1.gr twinkle2.gr life.gr
19SOURCE= 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
31Curses.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}
39troff: Master macros ${SOURCE}
40 ${TROFF} -me ${TFLAGS} Master ;
41
42intro.5: ${DOCS}
43appen.B: win_st.gr
44appen.C: twinkle1.gr life.gr twinkle2.gr
45
46intro.2.tbl: intro.2
47 tbl intro.2 > intro.2.tbl
48
49appen.A.tbl: appen.A
50 tbl appen.A > appen.A.tbl
51
52vfontedpr: vfontedpr.c
53 ${CC} ${CFLAGS} -o vfontedpr vfontedpr.c
54
55spell: ${SOURCE}
56 /bin/csh ./Spellit ${SOURCE} ${DOCS}
57
58install:
59 cp Makefile ${RAW} ${BINDIR}
60
61tar:
62 tar rv${TARFILE} Master ${RAW} ${CRAW} Makefile vfontedpr.c
63
64lpr: Curses
65 -lpr Curses ; lpq
66 -lpq
67
68clean:
69 rm -f ${CSOURCE} appen.A.tbl intro.2.tbl curses.tar vfontedpr