Makefile revision 5488
1219019Sgabor#	From: @(#)Makefile	8.16 (Berkeley) 8/15/94
2219019Sgabor#	$Id$
3219019Sgabor
4219019SgaborVOLUME=	usd/13.viref
5219019SgaborSRCS=	vi.ref ${.OBJDIR}/index.so
6219019SgaborFILES=	${SRCS} ex.cmd.roff set.opt.roff vi.cmd.roff 
7219019SgaborMACROS=	-me
8219019SgaborCLEANFILES+=vi.ref.txt index index.so
9219019SgaborUSE_SOELIM=	yes
10219019SgaborUSE_TBL=	yes
11SRCDIR=	${.CURDIR}/../../../../usr.bin/vi/USD.doc/vi.ref
12
13# some day, this will actually work...
14${.OBJDIR}/index.so: vi.ref
15	# Build index.so, side-effect of building the paper.
16	(cd ${SRCDIR}; soelim vi.ref) | ${TBL} | ${ROFF} > /dev/null
17	sed -e 's/MINUSSIGN/\\-/' \
18	    -e 's/DOUBLEQUOTE/""/' \
19	    -e "s/SQUOTE/'/" \
20	    -e 's/ /__SPACE/g' < index | \
21	sort -u '-t	' +0 -1 +1n | awk -f ${SRCDIR}/merge.awk | \
22	sed -e 's/__SPACE/ /g' > index.so
23	rm -f index
24
25.include <bsd.doc.mk>
26