1 # From: @(#)Makefile 8.16 (Berkeley) 8/15/94
2 # $FreeBSD: src/share/doc/usd/13.viref/Makefile,v 1.8.2.2 2000/12/01 11:34:38 ru Exp $
6 EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff
9 CLEANFILES+=index index.so
13 SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref
15 # Build index.so as a side-effect of building the paper.
16 index.so: ${SRCS} ${EXTRA}
17 (cd ${SRCDIR}; ${SOELIMPP} -e 's:^\.so index.so$$::' ${SRCS}) | \
19 sed -e 's/MINUSSIGN/-/' \
20 -e 's/DOUBLEQUOTE/""/' \
22 -e 's/ /__SPACE/g' < index | \
23 sort -u '-t ' +0 -1 +1n | awk -f ${SRCDIR}/merge.awk | \
24 sed -e 's/__SPACE/ /g' \
25 -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > index.so