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
|
|
|
|
2002-10-29 14:56:09 +00:00
|
|
|
VOLUME= usd/13.viref
|
|
|
|
SRCS= vi.ref
|
|
|
|
EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff index.so
|
|
|
|
MACROS= -me
|
|
|
|
CLEANFILES= index index.so
|
|
|
|
TRFLAGS= -U # this is to hide warnings only
|
|
|
|
USE_SOELIM= YES
|
|
|
|
USE_TBL= YES
|
|
|
|
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.
|
2002-10-29 14:56:09 +00:00
|
|
|
index.so: ${SRCS} ${EXTRA:Nindex.so}
|
|
|
|
(cd ${SRCDIR}; sed -e 's:^\.so index.so$$::' ${SRCS}) | ${ROFF} -U -z
|
2000-12-01 11:33:55 +00:00
|
|
|
sed -e 's/MINUSSIGN/-/' \
|
1995-01-11 03:24:33 +00:00
|
|
|
-e 's/DOUBLEQUOTE/""/' \
|
|
|
|
-e "s/SQUOTE/'/" \
|
|
|
|
-e 's/ /__SPACE/g' < index | \
|
2002-09-24 20:10:59 +00:00
|
|
|
sort -u '-t ' -k 1,1 -k 2n | awk -f ${SRCDIR}/merge.awk | \
|
2000-12-01 11:33:55 +00:00
|
|
|
sed -e 's/__SPACE/ /g' \
|
2002-10-29 14:56:09 +00:00
|
|
|
-e "s/^\\(['\\.]\\)/\\\\\&\\1/" > index.so
|
1995-01-11 03:24:33 +00:00
|
|
|
|
|
|
|
.include <bsd.doc.mk>
|