1995-01-11 03:24:33 +00:00
|
|
|
# From: @(#)Makefile 8.16 (Berkeley) 8/15/94
|
1995-11-29 16:25:21 +00:00
|
|
|
# $Id: Makefile,v 1.2 1995/05/30 06:58:01 rgrimes Exp $
|
1995-01-11 03:24:33 +00:00
|
|
|
|
|
|
|
VOLUME= usd/13.viref
|
1995-11-29 16:25:21 +00:00
|
|
|
SRCS= vi.ref
|
|
|
|
EXTRA= ex.cmd.roff ../../install/recover.script ref.so set.opt.roff \
|
|
|
|
vi.cmd.roff
|
|
|
|
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
|
|
|
|
SRCDIR= ${.CURDIR}/../../../../usr.bin/vi/USD.doc/vi.ref
|
|
|
|
|
1995-11-29 16:25:21 +00:00
|
|
|
index.so:: ${SRCS} ${EXTRA}
|
|
|
|
ALLSRCS= ${SRCS:S;^;${SRCDIR}/;}
|
|
|
|
index.so:: ${SRCS}
|
1995-01-11 03:24:33 +00:00
|
|
|
# Build index.so, side-effect of building the paper.
|
1995-11-29 16:25:21 +00:00
|
|
|
${SOELIMPP} -e 's:^\.so index.so$$::' ${ALLSRCS} | ${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>
|