freebsd-dev/share/doc/usd/13.viref/Makefile
Ruslan Ermilov c3e7b38f93 Starting from groff(1) version 1.12, -msafer is now the default,
but index building for 13.viref requires the use of .sy request.
Repair the index building by running groff(1) in unsafe -U mode.

Requested by:	bde
2000-11-23 08:51:33 +00:00

28 lines
727 B
Makefile

# 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
CLEANFILES+=index index.so
USE_SOELIM= yes
USE_SOELIMPP= yes
USE_TBL= yes
SRCDIR= ${.CURDIR}/../../../../contrib/nvi/docs/USD.doc/vi.ref
TRFLAGS+=-U
# 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
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>