1995-01-11 03:24:33 +00:00
|
|
|
# From: @(#)Makefile 8.16 (Berkeley) 8/15/94
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1995-01-11 03:24:33 +00:00
|
|
|
|
|
|
|
VOLUME= usd/13.viref
|
1995-11-29 16:25:21 +00:00
|
|
|
SRCS= vi.ref
|
1996-11-01 07:57:08 +00:00
|
|
|
EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff
|
1995-11-29 16:25:21 +00:00
|
|
|
OBJS= index.so
|
1995-01-11 03:24:33 +00:00
|
|
|
MACROS= -me
|
1995-11-29 16:25:21 +00:00
|
|
|
CLEANFILES+=index index.so
|
1995-01-11 03:24:33 +00:00
|
|
|
USE_SOELIM= yes
|
1995-11-29 16:25:21 +00:00
|
|
|
USE_SOELIMPP= yes
|
1995-01-11 03:24:33 +00:00
|
|
|
USE_TBL= yes
|
1996-11-01 07:57:08 +00:00
|
|
|
SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref
|
2000-11-23 08:51:33 +00:00
|
|
|
TRFLAGS+=-U
|
1995-01-11 03:24:33 +00:00
|
|
|
|
1998-08-02 14:00:39 +00:00
|
|
|
# Build index.so as a side-effect of building the paper.
|
|
|
|
index.so: ${SRCS} ${EXTRA}
|
|
|
|
${SOELIMPP} -e 's:^\.so index.so$$::' ${SRCS:S;^;${SRCDIR}/;} | \
|
|
|
|
${ROFF} > /dev/null
|
1995-01-11 03:24:33 +00:00
|
|
|
sed -e 's/MINUSSIGN/\\-/' \
|
|
|
|
-e 's/DOUBLEQUOTE/""/' \
|
|
|
|
-e "s/SQUOTE/'/" \
|
|
|
|
-e 's/ /__SPACE/g' < index | \
|
|
|
|
sort -u '-t ' +0 -1 +1n | awk -f ${SRCDIR}/merge.awk | \
|
|
|
|
sed -e 's/__SPACE/ /g' > index.so
|
|
|
|
|
|
|
|
.include <bsd.doc.mk>
|