Makefile (94ac52db2a4bc912c29c661c90a671996a13e7ad) Makefile (b382ba4fb114aa213e4f3599b9f15fd3f14f82fb)
1# From: @(#)Makefile 8.16 (Berkeley) 8/15/94
2# $FreeBSD$
3
1# From: @(#)Makefile 8.16 (Berkeley) 8/15/94
2# $FreeBSD$
3
4VOLUME= usd/13.viref
5SRCS= vi.ref
6EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff
7OBJS= index.so
8MACROS= -me -U
9CLEANFILES+=index index.so
10USE_SOELIM= yes
11USE_SOELIMPP= yes
12USE_TBL= yes
13SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref
4VOLUME= usd/13.viref
5SRCS= vi.ref
6EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff index.so
7MACROS= -me
8CLEANFILES= index index.so
9TRFLAGS= -U # this is to hide warnings only
10USE_SOELIM= YES
11USE_TBL= YES
12SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref
14
15# Build index.so as a side-effect of building the paper.
13
14# Build index.so as a side-effect of building the paper.
16index.so: ${SRCS} ${EXTRA}
17 (cd ${SRCDIR}; ${SOELIMPP} -e 's:^\.so index.so$$::' ${SRCS}) | \
18 ${ROFF} > /dev/null
15index.so: ${SRCS} ${EXTRA:Nindex.so}
16 (cd ${SRCDIR}; sed -e 's:^\.so index.so$$::' ${SRCS}) | ${ROFF} -U -z
19 sed -e 's/MINUSSIGN/-/' \
20 -e 's/DOUBLEQUOTE/""/' \
21 -e "s/SQUOTE/'/" \
22 -e 's/ /__SPACE/g' < index | \
23 sort -u '-t ' -k 1,1 -k 2n | awk -f ${SRCDIR}/merge.awk | \
24 sed -e 's/__SPACE/ /g' \
17 sed -e 's/MINUSSIGN/-/' \
18 -e 's/DOUBLEQUOTE/""/' \
19 -e "s/SQUOTE/'/" \
20 -e 's/ /__SPACE/g' < index | \
21 sort -u '-t ' -k 1,1 -k 2n | awk -f ${SRCDIR}/merge.awk | \
22 sed -e 's/__SPACE/ /g' \
25 -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > index.so
23 -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > index.so
26
27.include <bsd.doc.mk>
24
25.include <bsd.doc.mk>