summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.info.mk
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-07-26 13:51:46 +0000
committerwollman <wollman@FreeBSD.org>1995-07-26 13:51:46 +0000
commitd2d063551967f92381eda7cc1e1850e3fe6faf5e (patch)
tree4c33b4cf51b21a98eef03f7cc15e6c2291125de2 /share/mk/bsd.info.mk
parent0f7faf00c3c1041cad9f3c065792b72a3223f548 (diff)
downloadFreeBSD-src-d2d063551967f92381eda7cc1e1850e3fe6faf5e.zip
FreeBSD-src-d2d063551967f92381eda7cc1e1850e3fe6faf5e.tar.gz
Compress `doc' and `info' documents before installing them.
Diffstat (limited to 'share/mk/bsd.info.mk')
-rw-r--r--share/mk/bsd.info.mk23
1 files changed, 18 insertions, 5 deletions
diff --git a/share/mk/bsd.info.mk b/share/mk/bsd.info.mk
index 86c0c8b..fd1d862 100644
--- a/share/mk/bsd.info.mk
+++ b/share/mk/bsd.info.mk
@@ -1,13 +1,13 @@
-# $Id: bsd.info.mk,v 1.12 1995/02/25 20:51:11 phk Exp $
+# $Id: bsd.info.mk,v 1.13 1995/03/10 08:54:42 rgrimes Exp $
BINMODE= 444
BINDIR?= /usr/share/info
MAKEINFO?= makeinfo
-MAKEINFOFLAGS?= # --no-split would simplify some things, e.g., compression
+MAKEINFOFLAGS?= --no-split # simplify some things, e.g., compression
.MAIN: all
-.SUFFIXES: .info .texi .texinfo
+.SUFFIXES: .gz .info .texi .texinfo
.texi.info:
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
.texinfo.info:
@@ -15,7 +15,20 @@ MAKEINFOFLAGS?= # --no-split would simplify some things, e.g., compression
.PATH: ${.CURDIR}
-all: ${INFO:S/$/.info/g}
+.if !defined(NOINFOCOMPRESS)
+IFILES= ${INFO:S/$/.info.gz/g}
+all: ${IFILES}
+.else
+IFILES= ${INFO:S/$/.info/g}
+all: ${IFILES}
+.endif
+
+GZIP?= gzip
+
+.for x in ${INFO:S/$/.info/g}
+${x:S/$/.gz/}: ${x}
+ ${GZIP} -c ${.ALLSRC} > ${.TARGET}
+.endfor
# The default is "info" and it can never be "bin"
DISTRIBUTION?= info
@@ -68,7 +81,7 @@ install:
true ; \
fi
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
- ${INFO:S/$/.info*/g} ${DESTDIR}${BINDIR}
+ ${IFILES} ${DESTDIR}${BINDIR}
.if !target(maninstall)
maninstall:
OpenPOWER on IntegriCloud