__aeabi_ldivmod: fix sign logic
[minix.git] / usr.bin / nvi / docs / USD.doc / vi.ref / Makefile
blob5b1628ccd774378db77258bd44f614b225c225d4
1 # $NetBSD: Makefile,v 1.1 2008/09/02 09:25:39 christos Exp $
3 # @(#)Makefile 8.20 (Berkeley) 8/18/96
5 DIR= usd/13.viref
6 SRCS= vi.ref ex.cmd.roff set.opt.roff vi.cmd.roff ref.so
7 MACROS= -me
8 CLEANFILES+= vi.ref.txt vi.ref.ps index index.so
10 all: vi.ref.txt vi.ref.ps
12 vi.ref.txt: vi.ref index.so
13 ${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | ${TOOL_ROFF_ASCII} ${MACROS} > $@
14 rm -f index
15 chmod 444 $@
17 vi.ref.ps: vi.ref index.so
18 ${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | ${TOOL_ROFF_PS} ${MACROS} > $@
19 rm -f index
20 chmod 444 $@
22 index.so: vi.ref
23 # Build index.so, side-effect of building the paper.
24 ${TOOL_SOELIM} vi.ref | ${TOOL_TBL} | \
25 ${TOOL_ROFF_PS} ${MACROS} > /dev/null
26 sed -e 's/MINUSSIGN/\\-/' \
27 -e 's/DOUBLEQUOTE/""/' \
28 -e "s/SQUOTE/'/" \
29 -e 's/ /__SPACE/g' < index | \
30 sort -u '-t ' +0 -1 +1n | awk -f merge.awk | \
31 sed -e 's/__SPACE/ /g' > $@
32 rm -f index
33 chmod 444 $@
35 .include <bsd.doc.mk>