blob: 572b1e8664ffd06d238a971754ae7cc33d33ae08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# $OpenBSD: Makefile,v 1.4 2004/01/12 18:11:46 millert Exp $
DIR= usd/13.viref
SRCS= vi.ref ex.cmd.roff set.opt.roff vi.cmd.roff ref.so
EXTRA= merge.awk spell.ok
MACROS= -me
CLEANFILES+=vi.ref.txt index index.so
paper.ps: vi.ref index.so
soelim vi.ref | ${TBL} | ${ROFF} -U > ${.TARGET}
vi.ref.txt: vi.ref index.so
soelim vi.ref | ${TBL} | groff -U ${MACROS} -Tascii > $@
index.so: vi.ref
# Build index.so, side-effect of building the paper.
soelim vi.ref | ${TBL} | ${ROFF} -U > /dev/null
sed -e 's/MINUSSIGN/\\-/' \
-e 's/DOUBLEQUOTE/""/' \
-e "s/SQUOTE/'/" \
-e 's/ /__SPACE/g' < index | \
sort -u '-t ' +0 -1 +1n | awk -f merge.awk | \
sed -e 's/__SPACE/ /g' > index.so
rm -f index
.include <bsd.doc.mk>
|