summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-01-17 13:14:54 -0500
committerTimo Teräs <timo.teras@iki.fi>2020-01-26 09:03:21 +0200
commitb07776bd567636bfb0465f194e38e8a7a61fd058 (patch)
tree96b4a6e54b32da46e47a0d31d93f01d85489d3ef /doc
parentb62d252b7b51cd4ca8030577849842b07e1913fb (diff)
downloadapk-tools-b07776bd567636bfb0465f194e38e8a7a61fd058.tar.gz
apk-tools-b07776bd567636bfb0465f194e38e8a7a61fd058.tar.bz2
apk-tools-b07776bd567636bfb0465f194e38e8a7a61fd058.tar.xz
apk-tools-b07776bd567636bfb0465f194e38e8a7a61fd058.zip
Makefile: install man pages to MANDIR
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile26
1 files changed, 18 insertions, 8 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 30261e5..366a9ad 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -4,7 +4,12 @@ $(obj)/%.5: $(src)/%.5.scd
$(obj)/%.8: $(src)/%.8.scd
$(SCDOC) < $< > $@
-docs: $(obj)/apk.8 \
+MAN_5=$(obj)/apk-cache.5 \
+ $(obj)/apk-keys.5 \
+ $(obj)/apk-repositories.5 \
+ $(obj)/apk-world.5
+
+MAN_8=$(obj)/apk.8 \
$(obj)/apk-add.8 \
$(obj)/apk-audit.8 \
$(obj)/apk-cache.8 \
@@ -21,12 +26,17 @@ docs: $(obj)/apk.8 \
$(obj)/apk-update.8 \
$(obj)/apk-upgrade.8 \
$(obj)/apk-verify.8 \
- $(obj)/apk-version.8 \
- $(obj)/apk-cache.5 \
- $(obj)/apk-keys.5 \
- $(obj)/apk-repositories.5 \
- $(obj)/apk-world.5
+ $(obj)/apk-version.8
+
+docs: $(MAN_5) $(MAN_8)
targets += docs
-install: docs
- # TODO
+install.5: $(MAN_5)
+ $(INSTALLDIR) $(DESTDIR)$(MANDIR)/man5
+ for page in $^; do $(INSTALL) $$page $(DESTDIR)$(MANDIR)/man5/; done
+
+install.8: $(MAN_8)
+ $(INSTALLDIR) $(DESTDIR)$(MANDIR)/man8
+ for page in $^; do $(INSTALL) $$page $(DESTDIR)$(MANDIR)/man8/; done
+
+install: install.5 install.8