1# From: @(#)Makefile 8.16 (Berkeley) 8/15/94 2# $FreeBSD$ 3 4VOLUME= usd/13.viref 5SRCS= vi.ref-patched 6EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff 7MACROS= -me 8CLEANFILES= vi.ref-patched index 9TRFLAGS= -U # this is to hide warnings only 10USE_SOELIM= 11USE_TBL= 12SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref 13 14vi.ref-patched: vi.ref 15 sed -e 's:^\.so index.so$$:&.\\*[.T]:' ${.ALLSRC} > ${.TARGET} 16 17PRINTERDEVICE?= ascii 18.for _dev in ${PRINTERDEVICE} 19EXTRA+= index.so.${_dev} 20CLEANFILES+= index.so.${_dev} 21 22# Build index.so as a side-effect of building the paper. 23index.so.${_dev}: ${SRCS} ${EXTRA:Nindex.so.${_dev}} 24 sed -e 's:^\.so index\.so\.\\\*\[\.T\]$$::' vi.ref-patched | \ 25 ${ROFF.${_dev}} -U -z 26 sed -e 's/MINUSSIGN/-/' \ 27 -e 's/DOUBLEQUOTE/""/' \ 28 -e "s/SQUOTE/'/" \ 29 -e 's/ /__SPACE/g' < index | \ 30 sort -u '-t ' -k 1,1 -k 2n | awk -f ${SRCDIR}/merge.awk | \ 31 sed -e 's/__SPACE/ /g' \ 32 -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > ${.TARGET} 33.endfor 34 35.include <bsd.doc.mk> 36