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