diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-08-02 13:50:23 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-08-02 13:50:23 +0000 |
| commit | 0b7162ffcc268618d347956003cea6c6ea0c43aa (patch) | |
| tree | 349e3fdbbb9087e53e6ab244b7216a9340898fec | |
| parent | 0bdcbcbe9be534c9eb729da4f1d7f98de78cc1a8 (diff) | |
Notes
| -rw-r--r-- | share/mk/bsd.doc.mk | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk index 22383e0319a6..b4603e9bf3d3 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.43 1998/03/12 20:02:07 eivind Exp $ +# $Id: bsd.doc.mk,v 1.44 1998/05/06 18:44:00 bde Exp $ # # The include file <bsd.doc.mk> handles installing BSD troff documents. # @@ -143,26 +143,19 @@ BINMODE= 444 SRCDIR?= ${.CURDIR} .if !target(${DFILE}) +_stamp.extraobjs: ${EXTRA} ${OBJS} + touch ${.TARGET} +CLEANFILES+= _stamp.extraobjs +${DFILE}: ${SRCS} _stamp.extraobjs .if ${PRINTERDEVICE} == "html" -${DFILE}: ${SRCS} ${EXTRA} ${OBJS} cd ${SRCDIR}; ${UNROFF} ${MACROS} ${UNROFFFLAGS} \ - document=${DOC} ${SRCS} + document=${DOC} ${SRCS} +.elif defined(USE_SOELIMPP) + ${SOELIMPP} ${.ALLSRC:N_stamp.extraobjs} | ${ROFF} | \ + ${DCOMPRESS_CMD} > ${.TARGET} .else - -${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} | ${DCOMPRESS_CMD} > ${.TARGET} -.else - (cd ${SRCDIR}; ${ROFF} ${.ALLSRC}) | ${DCOMPRESS_CMD} > ${.TARGET} -.endif -.else -.if !defined(NODOCCOMPRESS) -${DFILE}: ${DOC}.${PRINTERDEVICE} - ${DCOMPRESS_CMD} ${DOC}.${PRINTERDEVICE} > ${.TARGET} -.endif + (cd ${SRCDIR}; ${ROFF} ${.ALLSRC:N_stamp.extraobjs}) | \ + ${DCOMPRESS_CMD} > ${.TARGET} .endif .endif |
