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