# From: @(#)Makefile 8.16 (Berkeley) 8/15/94 # $FreeBSD: src/share/doc/usd/13.viref/Makefile,v 1.8.2.2 2000/12/01 11:34:38 ru Exp $ # $DragonFly: src/share/doc/usd/13.viref/Makefile,v 1.2 2003/06/17 04:36:57 dillon Exp $ VOLUME= usd/13.viref SRCS= vi.ref EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff OBJS= index.so MACROS= -me -U CLEANFILES+=index index.so USE_SOELIM= yes USE_SOELIMPP= yes USE_TBL= yes SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref # Build index.so as a side-effect of building the paper. index.so: ${SRCS} ${EXTRA} (cd ${SRCDIR}; ${SOELIMPP} -e 's:^\.so index.so$$::' ${SRCS}) | \ ${ROFF} > /dev/null sed -e 's/MINUSSIGN/-/' \ -e 's/DOUBLEQUOTE/""/' \ -e "s/SQUOTE/'/" \ -e 's/ /__SPACE/g' < index | \ sort -u '-t ' +0 -1 +1n | awk -f ${SRCDIR}/merge.awk | \ sed -e 's/__SPACE/ /g' \ -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > index.so .include