11.15Sandvar#	$NetBSD: Makefile,v 1.15 2021/12/03 13:27:38 andvar Exp $
21.7Sperry#	from: @(#)Makefile	8.2 (Berkeley) 5/23/94
31.1Scgd
41.12SdhollandSECTION=reference/ref3
51.11SdhollandARTICLE=curses
61.1ScgdSRCS=	Master
71.11SdhollandCEXAMPLES= ex1.gr ex2.gr life.gr twinkle1.gr twinkle2.gr win_st.gr
81.11SdhollandDEPSRCS=appen.A appen.B appen.C doc.I doc.II doc.III doc.IV fns.doc \
91.11Sdholland	intro.0 intro.1 intro.2.tbl intro.3 intro.4 intro.5 intro.6 \
101.11Sdholland	macros c_macros $(CEXAMPLES)
111.1ScgdMACROS=	-me
121.11SdhollandCLEANFILES+= ${CEXAMPLES} intro.2.tbl
131.1Scgd
141.1Scgd.SUFFIXES:
151.1Scgd.SUFFIXES: .c .gr
161.1Scgd
171.1Scgd#
181.1Scgd# this section formats C input source into nice troffable (or nroffable)
191.15Sandvar# versions.  It uses the capabilities of "vgrind", which sets keywords in
201.1Scgd# bold font, and comments in italics.
211.1Scgd#
221.1Scgd
231.1Scgd# Don't re-run vgrind unless you want to patch the output files.
241.13Schristos
251.1Scgd.c.gr:
261.14Schristos	${TOOL_VFONTEDPR} ${.IMPSRC} | grep -v "^'wh" > ${.TARGET}
271.1Scgd
281.8Stron# Unfortunately our make doesn't handle single-suffix rules.
291.1Scgdintro.2.tbl: intro.2
301.10Slukem	${TOOL_TBL} ${.ALLSRC} > ${.TARGET}
311.1Scgd
321.1Scgd.include <bsd.doc.mk>
33