xref: /freebsd/share/doc/usd/13.viref/Makefile (revision f015dc4b89491a91bc9398876e55ce10fae96c74)
1#	From: @(#)Makefile	8.16 (Berkeley) 8/15/94
2#	$Id: Makefile,v 1.3 1995/11/29 16:25:21 bde Exp $
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
15index.so:: ${SRCS} ${EXTRA}
16ALLSRCS=	${SRCS:S;^;${SRCDIR}/;}
17index.so:: ${SRCS}
18	# Build index.so, side-effect of building the paper.
19	${SOELIMPP} -e 's:^\.so index.so$$::' ${ALLSRCS} | ${ROFF} > /dev/null
20	sed -e 's/MINUSSIGN/\\-/' \
21	    -e 's/DOUBLEQUOTE/""/' \
22	    -e "s/SQUOTE/'/" \
23	    -e 's/ /__SPACE/g' < index | \
24	sort -u '-t	' +0 -1 +1n | awk -f ${SRCDIR}/merge.awk | \
25	sed -e 's/__SPACE/ /g' > index.so
26
27.include <bsd.doc.mk>
28