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= 12 13vi.ref-patched: vi.ref 14 sed -e 's:^\.so index.so$$:&.\\*[.T]:' ${.ALLSRC} > ${.TARGET} 15 16PRINTERDEVICE?= ascii 17.for _dev in ${PRINTERDEVICE} 18EXTRA+= index.so.${_dev} 19CLEANFILES+= index.so.${_dev} 20 21# Build index.so as a side-effect of building the paper. 22index.so.${_dev}: ${SRCS} ${EXTRA:Nindex.so.${_dev}} 23 sed -e 's:^\.so index\.so\.\\\*\[\.T\]$$::' vi.ref-patched | \ 24 ${ROFF.${_dev}} -U -z 25 sed -e 's/MINUSSIGN/-/' \ 26 -e 's/DOUBLEQUOTE/""/' \ 27 -e "s/SQUOTE/'/" \ 28 -e 's/ /__SPACE/g' < index | \ 29 sort -u '-t ' -k 1,1 -k 2n | awk -f ${SRCDIR}/merge.awk | \ 30 sed -e 's/__SPACE/ /g' \ 31 -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > ${.TARGET} 32.endfor 33 34.include <bsd.doc.mk> 35