Fixed buggy generation of index.so. The roff command to generate it was

a little different than the one to generate the document.  This caused
wrong page numbers.

Fixed sourcing of index.so.  The hack of handling it separately is no
longer necessary.  This hack didn't quite work - the page numbers and
columnization of the index were wrong.

Fixed warnings about not being able to source index.so.

Fixed generation of `index' in the source directory.

Don't bother removing `index' after creating index.so.  `index' gets
created again when the final document is built and it's too much
trouble to remove later.

Fixed dependencies.  The long {SRCS} list in 4.4lite isn't quite
right and got broken to allow centralized rules.
This commit is contained in:
bde 1995-11-29 16:25:21 +00:00
parent 0ef33a094b
commit 450325fe60

View File

@ -1,25 +1,28 @@
# From: @(#)Makefile 8.16 (Berkeley) 8/15/94
# $Id: Makefile,v 1.1 1995/01/11 03:24:15 wollman Exp $
# $Id: Makefile,v 1.2 1995/05/30 06:58:01 rgrimes Exp $
VOLUME= usd/13.viref
SRCS= vi.ref ${.OBJDIR}/index.so
FILES= ${SRCS} ex.cmd.roff set.opt.roff vi.cmd.roff
SRCS= vi.ref
EXTRA= ex.cmd.roff ../../install/recover.script ref.so set.opt.roff \
vi.cmd.roff
OBJS= index.so
MACROS= -me
CLEANFILES+=vi.ref.txt index index.so
CLEANFILES+=index index.so
USE_SOELIM= yes
USE_SOELIMPP= yes
USE_TBL= yes
SRCDIR= ${.CURDIR}/../../../../usr.bin/vi/USD.doc/vi.ref
# some day, this will actually work...
${.OBJDIR}/index.so: vi.ref
index.so:: ${SRCS} ${EXTRA}
ALLSRCS= ${SRCS:S;^;${SRCDIR}/;}
index.so:: ${SRCS}
# Build index.so, side-effect of building the paper.
(cd ${SRCDIR}; soelim vi.ref) | ${TBL} | ${ROFF} > /dev/null
${SOELIMPP} -e 's:^\.so index.so$$::' ${ALLSRCS} | ${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
rm -f index
.include <bsd.doc.mk>