From 450325fe60c6eccc4f908c97f0d223829118aaaf Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 29 Nov 1995 16:25:21 +0000 Subject: 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. --- share/doc/usd/13.viref/Makefile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'share/doc/usd') diff --git a/share/doc/usd/13.viref/Makefile b/share/doc/usd/13.viref/Makefile index e503302..55a57e4 100644 --- a/share/doc/usd/13.viref/Makefile +++ b/share/doc/usd/13.viref/Makefile @@ -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 -- cgit v1.1