1 1.6 christos # $NetBSD: Makefile,v 1.6 2015/11/25 01:08:34 christos Exp $ 2 1.1 christos # 3 1.1 christos # @(#)Makefile 8.20 (Berkeley) 8/18/96 4 1.1 christos 5 1.6 christos .include <bsd.own.mk> 6 1.6 christos 7 1.3 dholland SECTION= reference/ref1 8 1.4 dholland ARTICLE= vi 9 1.2 dholland SRCS= vi.ref 10 1.2 dholland DEPSRCS= ex.cmd.roff set.opt.roff vi.cmd.roff ref.so index.so 11 1.5 christos # Add -U to the macros if you want to build the index since it needs 12 1.5 christos # unsafe mode for .sy 13 1.1 christos MACROS= -me 14 1.6 christos .if ${MKREPRO:Uno} == "yes" 15 1.6 christos MACROS+= -rR=1 16 1.6 christos .endif 17 1.2 dholland ROFF_TBL= yes 18 1.2 dholland CLEANFILES+= index index.so 19 1.1 christos 20 1.2 dholland .include <bsd.doc.mk> 21 1.1 christos 22 1.2 dholland # index.so is generated. 23 1.1 christos index.so: vi.ref 24 1.5 christos ${TOOL_SOELIM} -I${.CURDIR} ${.ALLSRC} | ${TOOL_TBL} | \ 25 1.1 christos ${TOOL_ROFF_PS} ${MACROS} > /dev/null 26 1.1 christos sed -e 's/MINUSSIGN/\\-/' \ 27 1.1 christos -e 's/DOUBLEQUOTE/""/' \ 28 1.1 christos -e "s/SQUOTE/'/" \ 29 1.1 christos -e 's/ /__SPACE/g' < index | \ 30 1.5 christos sort -u '-t ' +0 -1 +1n | awk -f ${.CURDIR}/merge.awk | \ 31 1.1 christos sed -e 's/__SPACE/ /g' > $@ 32 1.1 christos rm -f index 33