summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile')
-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