1995-01-11 03:24:33 +00:00
|
|
|
# From: @(#)Makefile 8.16 (Berkeley) 8/15/94
|
1998-08-02 14:00:39 +00:00
|
|
|
# $Id: Makefile,v 1.6 1997/02/22 13:06:31 peter Exp $
|
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
|
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>
|