fix up page numbering
[unix-history] / usr / src / lib / libcurses / PSD.doc / Makefile
... / ...
CommitLineData
1#
2# Copyright (c) 1980 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6# @(#)Makefile 6.1 (Berkeley) %G%
7#
8# makefile for screen package documentation
9#
10NROFF= nroff
11TROFF= ditroff
12VFONT= /usr/lib/vfontedpr
13NFLAGS= -Tcrt
14TFLAGS= -Pdp
15CFLAGS= -O -n -s
16BINDIR= /usr/doc/ps1/18.curses
17
18DOCS= doc.I doc.II doc.III doc.IV
19RAW= macros c_macros appen.B appen.A appen.C intro.0 intro.1 \
20 intro.2 intro.3 intro.4 intro.5 ${DOCS} curses.3x
21
22CRAW= win_st.c twinkle1.c twinkle2.c life.c
23CSOURCE=win_st.gr twinkle1.gr twinkle2.gr life.gr
24SOURCE= macros appen.A.tbl appen.B appen.C intro.0 intro.1 \
25 intro.2.tbl intro.3 intro.4 intro.5
26
27.SUFFIXES:
28.SUFFIXES: .c .gr
29
30#
31# this section formats C input source into nice troffable (or nroffable)
32# versions. It uses the capabilites of "vgrind", which sets keywords in
33# bold font, and comments in italics.
34#
35
36Curses.doc: ${VFONT} Master macros ${SOURCE}
37 ${NROFF} -me ${NFLAGS} Master > Curses.doc
38
39# Don't re-run vgrind unless you want to patch the output files.
40.c.gr:
41 ${VFONT} $*.c | grep -v "^'wh" > $*.gr
42
43troff: Master macros ${SOURCE}
44 ${TROFF} -me ${TFLAGS} Master ;
45
46${CSOURCE}: ${VFONT}
47
48intro.5: ${DOCS}
49appen.B: win_st.gr
50appen.C: twinkle1.gr life.gr twinkle2.gr
51
52intro.2.tbl: intro.2
53 tbl intro.2 > intro.2.tbl
54
55appen.A.tbl: appen.A
56 tbl appen.A > appen.A.tbl
57
58vfontedpr: vfontedpr.c
59 ${CC} ${CFLAGS} -o vfontedpr vfontedpr.c
60
61spell: ${SOURCE}
62 /bin/csh ./Spellit ${SOURCE} ${DOCS}
63
64install:
65 cp Makefile ${RAW} ${BINDIR}
66
67ar:
68 ar crv curdoc.ar Master ${RAW} ${CRAW} Makefile
69
70lpr: Curses
71 -lpr Curses ; lpq
72 -lpq
73
74clean:
75 rm -f ${CSOURCE} appen.A.tbl intro.2.tbl curses.tar vfontedpr Curses.doc