1# From: @(#)Makefile 8.16 (Berkeley) 8/15/94 2# $Id: Makefile,v 1.1 1995/01/11 03:24:15 wollman Exp $ 3 4VOLUME= usd/13.viref 5SRCS= vi.ref ${.OBJDIR}/index.so 6FILES= ${SRCS} ex.cmd.roff set.opt.roff vi.cmd.roff 7MACROS= -me 8CLEANFILES+=vi.ref.txt index index.so 9USE_SOELIM= yes 10USE_TBL= yes 11SRCDIR= ${.CURDIR}/../../../../usr.bin/vi/USD.doc/vi.ref 12 13# some day, this will actually work... 14${.OBJDIR}/index.so: vi.ref 15 # Build index.so, side-effect of building the paper. 16 (cd ${SRCDIR}; soelim vi.ref) | ${TBL} | ${ROFF} > /dev/null 17 sed -e 's/MINUSSIGN/\\-/' \ 18 -e 's/DOUBLEQUOTE/""/' \ 19 -e "s/SQUOTE/'/" \ 20 -e 's/ /__SPACE/g' < index | \ 21 sort -u '-t ' +0 -1 +1n | awk -f ${SRCDIR}/merge.awk | \ 22 sed -e 's/__SPACE/ /g' > index.so 23 rm -f index 24 25.include <bsd.doc.mk> 26