summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-01-02 12:12:00 +0000
committerbde <bde@FreeBSD.org>1995-01-02 12:12:00 +0000
commit459a4fffba23ef2e93f1267a15feb27be6c4741c (patch)
tree5e7421a6fa89bafe3a7797b886dfdd67ba60b516 /share
parentd6efd109b7cbdd948f4067cacae54350f17c309b (diff)
downloadFreeBSD-src-459a4fffba23ef2e93f1267a15feb27be6c4741c.zip
FreeBSD-src-459a4fffba23ef2e93f1267a15feb27be6c4741c.tar.gz
A generalized version of revision 1.1 of gnu/libnexex/uucp/doc/Makefile.
Fixes bugs in the latter: the `all' target was never up to date; there was no `depend' target. Doesn't work for multiple info files because it leverages bsd.doc.mk and that is broken. Info should be installed more like man pages...
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.info.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/mk/bsd.info.mk b/share/mk/bsd.info.mk
new file mode 100644
index 0000000..eb6427d
--- /dev/null
+++ b/share/mk/bsd.info.mk
@@ -0,0 +1,16 @@
+BINDIR?= /usr/share/info
+MAKEINFO?= makeinfo
+MAKEINFOFLAGS?= # --no-split would simplify some things, e.g., compression
+
+.SUFFIXES: .info .texi
+.texi.info:
+ ${MAKEINFO} ${MAKEINFOFLAGS} ${.IMPSRC} -o ${.TARGET}
+
+all: ${INFO:S/$/.info/g}
+
+# Hacks to interface to bsd.doc.mk.
+DOC= ${INFO}
+PRINTER= texi
+depend:
+
+.include <bsd.doc.mk>
OpenPOWER on IntegriCloud