| 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 | # |
| 10 | NROFF= nroff |
| 11 | TROFF= ditroff |
| 12 | VFONT= /usr/lib/vfontedpr |
| 13 | NFLAGS= -Tcrt |
| 14 | TFLAGS= -Pdp |
| 15 | CFLAGS= -O -n -s |
| 16 | BINDIR= /usr/doc/ps1/18.curses |
| 17 | |
| 18 | DOCS= doc.I doc.II doc.III doc.IV |
| 19 | RAW= 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 | |
| 22 | CRAW= win_st.c twinkle1.c twinkle2.c life.c |
| 23 | CSOURCE=win_st.gr twinkle1.gr twinkle2.gr life.gr |
| 24 | SOURCE= 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 | |
| 36 | Curses.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 | |
| 43 | troff: Master macros ${SOURCE} |
| 44 | ${TROFF} -me ${TFLAGS} Master ; |
| 45 | |
| 46 | ${CSOURCE}: ${VFONT} |
| 47 | |
| 48 | intro.5: ${DOCS} |
| 49 | appen.B: win_st.gr |
| 50 | appen.C: twinkle1.gr life.gr twinkle2.gr |
| 51 | |
| 52 | intro.2.tbl: intro.2 |
| 53 | tbl intro.2 > intro.2.tbl |
| 54 | |
| 55 | appen.A.tbl: appen.A |
| 56 | tbl appen.A > appen.A.tbl |
| 57 | |
| 58 | vfontedpr: vfontedpr.c |
| 59 | ${CC} ${CFLAGS} -o vfontedpr vfontedpr.c |
| 60 | |
| 61 | spell: ${SOURCE} |
| 62 | /bin/csh ./Spellit ${SOURCE} ${DOCS} |
| 63 | |
| 64 | install: |
| 65 | cp Makefile ${RAW} ${BINDIR} |
| 66 | |
| 67 | ar: |
| 68 | ar crv curdoc.ar Master ${RAW} ${CRAW} Makefile |
| 69 | |
| 70 | lpr: Curses |
| 71 | -lpr Curses ; lpq |
| 72 | -lpq |
| 73 | |
| 74 | clean: |
| 75 | rm -f ${CSOURCE} appen.A.tbl intro.2.tbl curses.tar vfontedpr Curses.doc |