diff options
author | wosch <wosch@FreeBSD.org> | 1997-05-11 10:42:00 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1997-05-11 10:42:00 +0000 |
commit | 4dcc2cb0014be35a26a631e178322edc5a552ef4 (patch) | |
tree | b5587da948ba2d87188bab9e9de7d5e10359dc7d /share/mk/bsd.doc.mk | |
parent | d8d579b282a8c7b61c3c83ff57414748052f6b88 (diff) | |
download | FreeBSD-src-4dcc2cb0014be35a26a631e178322edc5a552ef4.zip FreeBSD-src-4dcc2cb0014be35a26a631e178322edc5a552ef4.tar.gz |
Add variable LPR for printer command.
Murphy's Law: define LPR=true in /etc/make.conf if you don't want
tomorrow find 3 paper copies (ascii, latin1, postscript) of the
handbook in your printer (or someone else printer on the other half of
the world).
Diffstat (limited to 'share/mk/bsd.doc.mk')
-rw-r--r-- | share/mk/bsd.doc.mk | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk index 0638bf2..fc50d1c 100644 --- a/share/mk/bsd.doc.mk +++ b/share/mk/bsd.doc.mk @@ -1,5 +1,19 @@ # from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91 -# $Id: bsd.doc.mk,v 1.35 1997/03/08 23:46:49 wosch Exp $ +# $Id: bsd.doc.mk,v 1.36 1997/04/04 01:25:32 mpp Exp $ +# +# The include file <bsd.doc.mk> handles installing BSD troff documents. +# <bsd.prog.mk> includes the include files <bsd.dep.mk> and <bsd.obj.mk>. +# +# +# +++ variables +++ +# +# LPR Printer command. [lpr] +# +# [incomplete] +# +# +++ targets +++ +# +# [incomplete] PRINTERDEVICE?= ascii @@ -24,6 +38,7 @@ SOELIMPPARGS= ${SOELIMPPARGS2:S/\\'/'/g} TBL?= tbl DOC?= paper +LPR?= lpr TRFLAGS+= -T${PRINTERDEVICE} .if defined(USE_EQN) @@ -72,9 +87,9 @@ all: ${DFILE} .if !target(print) print: ${DFILE} .if defined(NODOCCOMPRESS) - lpr ${DFILE} + ${LPR} ${DFILE} .else - ${DCOMPRESS_CMD} -d ${DFILE} | lpr + ${DCOMPRESS_CMD} -d ${DFILE} | ${LPR} .endif .endif |