aboutsummaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-11-29 16:05:08 +0000
committerBruce Evans <bde@FreeBSD.org>1995-11-29 16:05:08 +0000
commit96bfa1428725e254fb85a4b1662511f9a1a6f02f (patch)
treedd08eea95b13099c6792d12885eb1503f8a99850 /share/mk
parentb0d30084c0634bc2e45259126ca4254934e15652 (diff)
downloadsrc-96bfa1428725e254fb85a4b1662511f9a1a6f02f.tar.gz
src-96bfa1428725e254fb85a4b1662511f9a1a6f02f.zip
Notes
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.doc.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk
index acbf77ee9674..a21db8f3e323 100644
--- a/share/mk/bsd.doc.mk
+++ b/share/mk/bsd.doc.mk
@@ -1,5 +1,5 @@
# from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
-# $Id: bsd.doc.mk,v 1.21 1995/07/27 15:03:25 wollman Exp $
+# $Id: bsd.doc.mk,v 1.22 1995/10/15 16:14:42 jfieber Exp $
PRINTER?= ascii
@@ -16,6 +16,11 @@ ROFF?= groff -mtty-char ${TRFLAGS} ${MACROS} -o${PAGES}
ROFF?= groff ${TRFLAGS} ${MACROS} -o${PAGES}
.endif
SOELIM?= soelim
+SOELIMPP= sed ${SOELIMPPARGS}
+SOELIMPPARGS0= ${SRCS} ${EXTRA}
+SOELIMPPARGS1= ${SOELIMPPARGS0:S/^/-e\\ \'s:\(\.so[\\ \\ ][\\ \\ ]*\)\(/}
+SOELIMPPARGS2= ${SOELIMPPARGS1:S/$/\)\$:\1${SRCDIR}\/\2:\'/}
+SOELIMPPARGS= ${SOELIMPPARGS2:S/\\'/'/g}
TBL?= tbl
DOC?= paper
@@ -128,8 +133,15 @@ BINMODE= 444
SRCDIR?= ${.CURDIR}
.if !target(${DFILE})
-${DFILE}: ${SRCS}
+${DFILE}:: ${SRCS} ${EXTRA} ${OBJS}
+# XXX ${.ALLSRC} doesn't work unless there are a lot of .PATH.foo statements.
+ALLSRCS= ${SRCS:S;^;${SRCDIR}/;}
+${DFILE}:: ${SRCS}
+.if defined(USE_SOELIMPP)
+ ${SOELIMPP} ${ALLSRCS} | ${ROFF} | ${GZIPCMD} > ${.TARGET}
+.else
(cd ${SRCDIR}; ${ROFF} ${.ALLSRC}) | ${GZIPCMD} > ${.TARGET}
+.endif
.else
.if !defined(NODOCCOMPRESS)
${DFILE}: ${DOC}.${PRINTER}