diff options
author | wollman <wollman@FreeBSD.org> | 1995-01-11 00:00:11 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-01-11 00:00:11 +0000 |
commit | d1495f40e61631d05d1bcb1dd48371d8d312bb1c (patch) | |
tree | b5e8de62d72f232f44103fb6de2c8ff057279eb3 /share/mk | |
parent | 6cbf9ac3bb42c2ad20e4691fee6c0e761a87723d (diff) | |
download | FreeBSD-src-d1495f40e61631d05d1bcb1dd48371d8d312bb1c.zip FreeBSD-src-d1495f40e61631d05d1bcb1dd48371d8d312bb1c.tar.gz |
Changes to make /usr/share/doc work somewhat right. (SMM commits
to follow soon.)
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.doc.mk | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk index 4139392..6096ef3 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.6 1995/01/04 21:34:13 ache Exp $ +# $Id: bsd.doc.mk,v 1.7 1995/01/04 22:43:51 ache Exp $ PRINTER?= ps @@ -10,17 +10,36 @@ GRIND?= vgrind -f INDXBIB?= indxbib PIC?= pic REFER?= refer -ROFF?= groff -T${PRINTER} ${MACROS} -o${PAGES} +ROFF?= groff ${TRFLAGS} ${MACROS} -o${PAGES} SOELIM?= soelim TBL?= tbl +DOC?= paper + +TRFLAGS+= -T${PRINTER} +.if defined(USE_EQN) +TRFLAGS+= -e +.endif +.if defined(USE_TBL) +TRFLAGS+= -t +.endif +.if defined(USE_PIC) +TRFLAGS+= -p +.endif +.if defined(USE_SOELIM) +TRFLAGS+= -s +.endif +.if defined(USE_REFER) +TRFALGS+= -R +.endif + PAGES?= 1- # Compatibility mode flag for groff. Use this when formatting documents with # Berkeley me macros. COMPAT?= -C -.PATH: ${.CURDIR} +.PATH: ${.CURDIR} ${SRCDIR} all: ${DOC}.${PRINTER} @@ -86,3 +105,19 @@ spell: ${SRCS} BINDIR?= /usr/share/doc BINMODE= 444 + +SRCDIR?= ${.CURDIR} + +.if !target(${DOC}.${PRINTER}) +CLEANFILES+= ${DOC}.${PRINTER}+ + +${DOC}.${PRINTER}: ${SRCS} + (cd ${SRCDIR}; ${ROFF} ${.ALLSRC}) > ${.TARGET}+ + rm -f ${.TARGET} + mv ${.TARGET}+ ${.TARGET} +.endif + +.if !target(depend) +depend: + +.endif |