xref: /netbsd/lib/libcurses/PSD.doc/Makefile (revision c4a72b64)
1#	$NetBSD: Makefile,v 1.9 2002/08/13 20:07:31 pooka Exp $
2#	from: @(#)Makefile	8.2 (Berkeley) 5/23/94
3
4DIR=	psd/19.curses
5SRCS=	Master
6MACROS=	-me
7OTHER=	appen.A appen.B appen.C doc.I doc.II doc.III doc.IV fns.doc \
8	intro.0 intro.1 intro.3 intro.4 intro.5 intro.6 \
9	macros c_macros
10CEXAMPLES= ex1.gr ex2.gr life.gr twinkle1.gr twinkle2.gr win_st.gr
11TBLFILES=  intro.2.tbl
12EXTRA=	${OTHER} ${CEXAMPLES:R:S/$/.c/g} ${TBLFILES:R}
13
14CLEANFILES+= ${CEXAMPLES} ${TBLFILES}
15
16.SUFFIXES:
17.SUFFIXES: .c .gr
18
19#
20# this section formats C input source into nice troffable (or nroffable)
21# versions.  It uses the capabilites of "vgrind", which sets keywords in
22# bold font, and comments in italics.
23#
24
25# Don't re-run vgrind unless you want to patch the output files.
26VFONT=	/usr/libexec/vfontedpr
27.c.gr:
28	${VFONT} ${.IMPSRC} | grep -v "^'wh" > ${.TARGET}
29
30paper.ps: ${SRCS} ${OTHER} ${CEXAMPLES} ${TBLFILES}
31	${SOELIM} -I${.CURDIR} Master | ${ROFF} ${MACROS} > ${.TARGET}
32
33# Unfortunately our make doesn't handle single-suffix rules.
34intro.2.tbl: intro.2
35	${TBL} ${.ALLSRC} > ${.TARGET}
36
37.include <bsd.doc.mk>
38