1# $OpenBSD: Makefile,v 1.6 2004/01/30 23:39:22 jmc Exp $ 2 3 4DIR= usd/13.viref 5SRCS= vi.ref ex.cmd.roff set.opt.roff vi.cmd.roff ref.so 6EXTRA= merge.awk spell.ok 7MACROS= -me 8CLEANFILES+=index index.so 9 10paper.ps: vi.ref index.so 11 soelim vi.ref | ${TBL} | ${ROFF} -U > ${.TARGET} 12 13paper.txt: vi.ref index.so 14 soelim vi.ref | ${TBL} | ${ROFF} -U -Tascii > ${.TARGET} 15 16index.so: vi.ref 17 # Build index.so, side-effect of building the paper. 18 sed '/^\.so index.so/s/^/.\\\" /' vi.ref | soelim | \ 19 ${TBL} | ${ROFF} -U > /dev/null 20 sed -e 's/MINUSSIGN/\\-/' \ 21 -e 's/DOUBLEQUOTE/""/' \ 22 -e "s/SQUOTE/'/" \ 23 -e 's/ /__SPACE/g' < index | \ 24 sort -u '-t ' +0 -1 +1n | awk -f merge.awk | \ 25 sed -e 's/__SPACE/ /g' > index.so 26 rm -f index 27 28.include <bsd.doc.mk> 29