summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-29 16:25:21 +0000
committerbde <bde@FreeBSD.org>1995-11-29 16:25:21 +0000
commit450325fe60c6eccc4f908c97f0d223829118aaaf (patch)
tree0d3f697eecd7f9193485d32ba2357a935d355c11 /share
parent0ef33a094b07f7cf4b703ff4ef238e6e7e8d9eaf (diff)
downloadFreeBSD-src-450325fe60c6eccc4f908c97f0d223829118aaaf.zip
FreeBSD-src-450325fe60c6eccc4f908c97f0d223829118aaaf.tar.gz
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.
Diffstat (limited to 'share')
-rw-r--r--share/doc/usd/13.viref/Makefile19
1 files changed, 11 insertions, 8 deletions
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 <bsd.doc.mk>
OpenPOWER on IntegriCloud