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