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).
This commit is contained in:
Wolfram Schneider 1997-05-11 10:42:00 +00:00
parent 04a59e678a
commit 0d13363288
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25710

View file

@ -1,5 +1,19 @@
# from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91 # 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 PRINTERDEVICE?= ascii
@ -24,6 +38,7 @@ SOELIMPPARGS= ${SOELIMPPARGS2:S/\\'/'/g}
TBL?= tbl TBL?= tbl
DOC?= paper DOC?= paper
LPR?= lpr
TRFLAGS+= -T${PRINTERDEVICE} TRFLAGS+= -T${PRINTERDEVICE}
.if defined(USE_EQN) .if defined(USE_EQN)
@ -72,9 +87,9 @@ all: ${DFILE}
.if !target(print) .if !target(print)
print: ${DFILE} print: ${DFILE}
.if defined(NODOCCOMPRESS) .if defined(NODOCCOMPRESS)
lpr ${DFILE} ${LPR} ${DFILE}
.else .else
${DCOMPRESS_CMD} -d ${DFILE} | lpr ${DCOMPRESS_CMD} -d ${DFILE} | ${LPR}
.endif .endif
.endif .endif