aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.doc.mk
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1997-05-11 10:42:00 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1997-05-11 10:42:00 +0000
commit0d13363288f50c9ae5acd17816d9ca83623bc5a7 (patch)
treeaff1f3759bb12d655d4c938b7786d09a717061e5 /share/mk/bsd.doc.mk
parent04a59e678a5eb1688133555977ec75657b3799da (diff)
downloadsrc-0d13363288f50c9ae5acd17816d9ca83623bc5a7.tar.gz
src-0d13363288f50c9ae5acd17816d9ca83623bc5a7.zip
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).
Notes
Notes: svn path=/head/; revision=25710
Diffstat (limited to 'share/mk/bsd.doc.mk')
-rw-r--r--share/mk/bsd.doc.mk21
1 files changed, 18 insertions, 3 deletions
diff --git a/share/mk/bsd.doc.mk b/share/mk/bsd.doc.mk
index 0638bf2d2639..fc50d1cfdd36 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