xref: /original-bsd/lib/libcurses/PSD.doc/Makefile (revision 440fde76)
1#
2# Copyright (c) 1980 The Regents of the University of California.
3# All rights reserved.
4#
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.3 (Berkeley) 03/17/89
18#
19NROFF=	nroff
20TROFF=	ditroff
21TBL=	dtbl -Pdp
22VFONT=	/usr/lib/vfontedpr
23NFLAGS=	-Tcrt
24TFLAGS= -Pdp
25CFLAGS=	-O -n -s
26BINDIR=	/usr/doc/ps1/18.curses
27
28DOCS=	doc.I doc.II doc.III doc.IV
29RAW=	macros c_macros appen.B appen.A appen.C intro.0 intro.1 \
30	intro.2 intro.3 intro.4 intro.5 ${DOCS} curses.3x
31
32CRAW=	win_st.c twinkle1.c twinkle2.c life.c
33CSOURCE=win_st.gr twinkle1.gr twinkle2.gr life.gr
34SOURCE=	macros appen.A.tbl appen.B appen.C intro.0 intro.1 \
35	intro.2.tbl intro.3 intro.4 intro.5
36
37.SUFFIXES:
38.SUFFIXES: .c .gr
39
40#
41# this section formats C input source into nice troffable (or nroffable)
42# versions.  It uses the capabilites of "vgrind", which sets keywords in
43# bold font, and comments in italics.
44#
45
46# Don't re-run vgrind unless you want to patch the output files.
47.c.gr:
48	${VFONT} $*.c | grep -v "^'wh" > $*.gr
49
50troff: Master macros ${SOURCE}
51	${TROFF} -me ${TFLAGS} Master ;
52
53Curses.doc: ${VFONT} Master macros ${SOURCE}
54	${NROFF} -me ${NFLAGS} Master > Curses.doc
55
56${CSOURCE}: ${VFONT}
57
58intro.5: ${DOCS}
59appen.B: win_st.gr
60appen.C: twinkle1.gr life.gr twinkle2.gr
61
62intro.2.tbl: intro.2
63	${TBL} intro.2 > intro.2.tbl
64
65appen.A.tbl: appen.A
66	${TBL} appen.A > appen.A.tbl
67
68vfontedpr: vfontedpr.c
69	${CC} ${CFLAGS} -o vfontedpr vfontedpr.c
70
71spell: ${SOURCE}
72	/bin/csh ./Spellit ${SOURCE} ${DOCS}
73
74install:
75	cp Makefile ${RAW} ${BINDIR}
76
77ar:
78	ar crv curdoc.ar Master ${RAW} ${CRAW} Makefile
79
80lpr: Curses
81	-lpr Curses ; lpq
82	-lpq
83
84clean:
85	rm -f ${CSOURCE} appen.A.tbl intro.2.tbl curses.tar vfontedpr \
86		Curses.doc errs Errs
87