1 1.1 christos # $NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $ 2 1.1 christos # 3 1.1 christos # @(#)Makefile 8.20 (Berkeley) 8/18/96 4 1.1 christos 5 1.1 christos DIR= usd/13.viref 6 1.1 christos SRCS= vi.ref ex.cmd.roff set.opt.roff vi.cmd.roff ref.so 7 1.1 christos MACROS= -me 8 1.1 christos CLEANFILES+= vi.ref.txt vi.ref.ps index index.so 9 1.1 christos 10 1.1 christos all: vi.ref.txt vi.ref.ps 11 1.1 christos 12 1.1 christos vi.ref.txt: vi.ref index.so 13 1.1 christos ${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | ${TOOL_ROFF_ASCII} ${MACROS} > $@ 14 1.1 christos rm -f index 15 1.1 christos chmod 444 $@ 16 1.1 christos 17 1.1 christos vi.ref.ps: vi.ref index.so 18 1.1 christos ${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | ${TOOL_ROFF_PS} ${MACROS} > $@ 19 1.1 christos rm -f index 20 1.1 christos chmod 444 $@ 21 1.1 christos 22 1.1 christos index.so: vi.ref 23 1.1 christos # Build index.so, side-effect of building the paper. 24 1.1 christos ${TOOL_SOELIM} vi.ref | ${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.1 christos sort -u '-t ' +0 -1 +1n | awk -f merge.awk | \ 31 1.1 christos sed -e 's/__SPACE/ /g' > $@ 32 1.1 christos rm -f index 33 1.1 christos chmod 444 $@ 34 1.1 christos 35 1.1 christos .include <bsd.doc.mk> 36