summary refs log tree commit diff
path: root/doc/zlib/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-27 22:11:35 -0500
committerJune McEnroe <june@causal.agency>2020-12-27 22:11:35 -0500
commitfe5829caffb9fb44a142f8ca9b0213304b0df84a (patch)
tree1dd744f2648ba894dff816afe48ab4157beafc80 /doc/zlib/Makefile
parentAdd "this commit" option to switch form (diff)
parentReplace Makefile with portable one (diff)
downloadsrc-fe5829caffb9fb44a142f8ca9b0213304b0df84a.tar.gz
src-fe5829caffb9fb44a142f8ca9b0213304b0df84a.zip
Add 'doc/zlib/' from commit 'e1ebbcf0ed43f21dd504f1f109e5d12b6bc99460'
git-subtree-dir: doc/zlib
git-subtree-mainline: bc52b7578b0ebfc228977342ac7bffc999212197
git-subtree-split: e1ebbcf0ed43f21dd504f1f109e5d12b6bc99460
Diffstat (limited to '')
-rw-r--r--doc/zlib/Makefile87
1 files changed, 87 insertions, 0 deletions
diff --git a/doc/zlib/Makefile b/doc/zlib/Makefile
new file mode 100644
index 00000000..6cfd4a42
--- /dev/null
+++ b/doc/zlib/Makefile
@@ -0,0 +1,87 @@
+PREFIX ?= ~/.local
+MANDIR ?= ${PREFIX}/share/man
+
+MAN += adler32.3
+MAN += adler32_combine.3
+MAN += compress.3
+MAN += compressBound.3
+MAN += crc32.3
+MAN += crc32_combine.3
+MAN += deflate.3
+MAN += deflateBound.3
+MAN += deflateCopy.3
+MAN += deflateEnd.3
+MAN += deflateGetDictionary.3
+MAN += deflateInit.3
+MAN += deflateInit2.3
+MAN += deflateParams.3
+MAN += deflatePending.3
+MAN += deflatePrime.3
+MAN += deflateReset.3
+MAN += deflateSetDictionary.3
+MAN += deflateSetHeader.3
+MAN += deflateTune.3
+MAN += gzbuffer.3
+MAN += gzclose.3
+MAN += gzdirect.3
+MAN += gzeof.3
+MAN += gzerror.3
+MAN += gzflush.3
+MAN += gzfread.3
+MAN += gzfwrite.3
+MAN += gzgetc.3
+MAN += gzgets.3
+MAN += gzoffset.3
+MAN += gzopen.3
+MAN += gzprintf.3
+MAN += gzputc.3
+MAN += gzputs.3
+MAN += gzread.3
+MAN += gzseek.3
+MAN += gzsetparams.3
+MAN += gzungetc.3
+MAN += gzwrite.3
+MAN += inflate.3
+MAN += inflateBack.3
+MAN += inflateBackEnd.3
+MAN += inflateBackInit.3
+MAN += inflateCopy.3
+MAN += inflateEnd.3
+MAN += inflateGetDictionary.3
+MAN += inflateGetHeader.3
+MAN += inflateInit.3
+MAN += inflateInit2.3
+MAN += inflateMark.3
+MAN += inflatePrime.3
+MAN += inflateReset.3
+MAN += inflateSetDictionary.3
+MAN += inflateSync.3
+MAN += uncompress.3
+MAN += zlibCompileFlags.3
+MAN += zlibVersion.3
+
+MLINKS += adler32.3 adler32_z.3
+MLINKS += compress.3 compress2.3
+MLINKS += crc32.3 crc32_z.3
+MLINKS += gzclose.3 gzclose_r.3
+MLINKS += gzclose.3 gzclose_w.3
+MLINKS += gzerror.3 gzclearerr.3
+MLINKS += gzopen.3 gzdopen.3
+MLINKS += gzseek.3 gzrewind.3
+MLINKS += gzseek.3 gztell.3
+MLINKS += inflateReset.3 inflateReset2.3
+MLINKS += uncompress.3 uncompress2.3
+
+lint:
+	mandoc -T lint ${MAN} | grep -v 'referenced manual not found'
+
+install:
+	install -d ${MANDIR}/man3
+	install -m 644 ${MAN} ${MANDIR}/man3
+	set -- ${MLINKS}; while [ -n "$$*" ]; do \
+		ln -fs $$1 ${MANDIR}/man3/$$2; shift 2; done
+
+uninstall:
+	rm -f ${MAN:%=${MANDIR}/man3/%}
+	set -- ${MLINKS}; while [ -n "$$*" ]; do \
+		rm -f ${MANDIR}/man3/$$2; shift 2; done