Makefile revision 50476
1#	From: @(#)Makefile	8.16 (Berkeley) 8/15/94
2# $FreeBSD: head/share/doc/usd/13.viref/Makefile 50476 1999-08-28 00:22:10Z peter $
3
4VOLUME=	usd/13.viref
5SRCS=	vi.ref
6EXTRA=	ex.cmd.roff ref.so set.opt.roff vi.cmd.roff
7OBJS=	index.so
8MACROS=	-me
9CLEANFILES+=index index.so
10USE_SOELIM=	yes
11USE_SOELIMPP=	yes
12USE_TBL=	yes
13SRCDIR=	${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref
14
15# Build index.so as a side-effect of building the paper.
16index.so: ${SRCS} ${EXTRA}
17	${SOELIMPP} -e 's:^\.so index.so$$::' ${SRCS:S;^;${SRCDIR}/;} | \
18	${ROFF} > /dev/null
19	sed -e 's/MINUSSIGN/\\-/' \
20	    -e 's/DOUBLEQUOTE/""/' \
21	    -e "s/SQUOTE/'/" \
22	    -e 's/ /__SPACE/g' < index | \
23	sort -u '-t	' +0 -1 +1n | awk -f ${SRCDIR}/merge.awk | \
24	sed -e 's/__SPACE/ /g' > index.so
25
26.include <bsd.doc.mk>
27