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 $
3 # $DragonFly: src/share/doc/usd/13.viref/Makefile,v 1.2 2003/06/17 04:36:57 dillon Exp $
7 EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff
10 CLEANFILES+=index index.so
14 SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref
16 # Build index.so as a side-effect of building the paper.
17 index.so: ${SRCS} ${EXTRA}
18 (cd ${SRCDIR}; ${SOELIMPP} -e 's:^\.so index.so$$::' ${SRCS}) | \
20 sed -e 's/MINUSSIGN/-/' \
21 -e 's/DOUBLEQUOTE/""/' \
23 -e 's/ /__SPACE/g' < index | \
24 sort -u '-t ' +0 -1 +1n | awk -f ${SRCDIR}/merge.awk | \
25 sed -e 's/__SPACE/ /g' \
26 -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > index.so