mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
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:
parent
04a59e678a
commit
0d13363288
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25710
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue