1 1.4 dholland # $NetBSD: Makefile,v 1.4 2014/07/05 19:23:00 dholland 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.1 christos MACROS= -me 10 1.2 dholland ROFF_TBL= yes 11 1.2 dholland CLEANFILES+= index index.so 12 1.1 christos 13 1.2 dholland .include <bsd.doc.mk> 14 1.1 christos 15 1.2 dholland # index.so is generated. 16 1.1 christos index.so: vi.ref 17 1.1 christos ${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | \ 18 1.1 christos ${TOOL_ROFF_PS} ${MACROS} > /dev/null 19 1.1 christos sed -e 's/MINUSSIGN/\\-/' \ 20 1.1 christos -e 's/DOUBLEQUOTE/""/' \ 21 1.1 christos -e "s/SQUOTE/'/" \ 22 1.1 christos -e 's/ /__SPACE/g' < index | \ 23 1.1 christos sort -u '-t ' +0 -1 +1n | awk -f merge.awk | \ 24 1.1 christos sed -e 's/__SPACE/ /g' > $@ 25 1.1 christos rm -f index 26