aboutsummaryrefslogtreecommitdiff
path: root/share/doc/usd/13.viref/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'share/doc/usd/13.viref/Makefile')
-rw-r--r--share/doc/usd/13.viref/Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/share/doc/usd/13.viref/Makefile b/share/doc/usd/13.viref/Makefile
index e71a444f93bc..001bb47c23cd 100644
--- a/share/doc/usd/13.viref/Makefile
+++ b/share/doc/usd/13.viref/Makefile
@@ -1,27 +1,25 @@
# From: @(#)Makefile 8.16 (Berkeley) 8/15/94
# $FreeBSD$
-VOLUME= usd/13.viref
-SRCS= vi.ref
-EXTRA= ex.cmd.roff ref.so set.opt.roff vi.cmd.roff
-OBJS= index.so
-MACROS= -me -U
-CLEANFILES+=index index.so
-USE_SOELIM= yes
-USE_SOELIMPP= yes
-USE_TBL= yes
-SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref
+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
# Build index.so as a side-effect of building the paper.
-index.so: ${SRCS} ${EXTRA}
- (cd ${SRCDIR}; ${SOELIMPP} -e 's:^\.so index.so$$::' ${SRCS}) | \
- ${ROFF} > /dev/null
+index.so: ${SRCS} ${EXTRA:Nindex.so}
+ (cd ${SRCDIR}; sed -e 's:^\.so index.so$$::' ${SRCS}) | ${ROFF} -U -z
sed -e 's/MINUSSIGN/-/' \
-e 's/DOUBLEQUOTE/""/' \
-e "s/SQUOTE/'/" \
-e 's/ /__SPACE/g' < index | \
sort -u '-t ' -k 1,1 -k 2n | awk -f ${SRCDIR}/merge.awk | \
sed -e 's/__SPACE/ /g' \
- -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > index.so
+ -e "s/^\\(['\\.]\\)/\\\\\&\\1/" > index.so
.include <bsd.doc.mk>