diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-01-26 11:47:05 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-01-26 11:47:05 +0200 |
commit | 0867d629b96d3f5e312d9670f51581e7225e3aad (patch) | |
tree | 167e29cb2ac47db2846eb7a1dd062bcbb1d48898 /doc/Makefile | |
parent | ee24da7d3607bad67d280b9c3b46a8a43b361e07 (diff) | |
download | apk-tools-0867d629b96d3f5e312d9670f51581e7225e3aad.tar.gz apk-tools-0867d629b96d3f5e312d9670f51581e7225e3aad.tar.bz2 apk-tools-0867d629b96d3f5e312d9670f51581e7225e3aad.tar.xz apk-tools-0867d629b96d3f5e312d9670f51581e7225e3aad.zip |
convert man page makefile to make.rules format
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 67 |
1 files changed, 29 insertions, 38 deletions
diff --git a/doc/Makefile b/doc/Makefile index 23d8972..21d5e03 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,39 +1,30 @@ -$(obj)/%: $(src)/%.scd - $(SCDOC) < $< > $@ +scdocs-y += \ + apk-cache.5 \ + apk-keys.5 \ + apk-repositories.5 \ + apk-world.5 \ + apk.8 \ + apk-add.8 \ + apk-audit.8 \ + apk-cache.8 \ + apk-del.8 \ + apk-dot.8 \ + apk-fetch.8 \ + apk-fix.8 \ + apk-index.8 \ + apk-info.8 \ + apk-list.8 \ + apk-manifest.8 \ + apk-policy.8 \ + apk-stats.8 \ + apk-update.8 \ + apk-upgrade.8 \ + apk-verify.8 \ + apk-version.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 \ - $(obj)/apk-del.8 \ - $(obj)/apk-dot.8 \ - $(obj)/apk-fetch.8 \ - $(obj)/apk-fix.8 \ - $(obj)/apk-index.8 \ - $(obj)/apk-info.8 \ - $(obj)/apk-list.8 \ - $(obj)/apk-manifest.8 \ - $(obj)/apk-policy.8 \ - $(obj)/apk-stats.8 \ - $(obj)/apk-update.8 \ - $(obj)/apk-upgrade.8 \ - $(obj)/apk-verify.8 \ - $(obj)/apk-version.8 - -docs: $(MAN_5) $(MAN_8) -targets += docs - -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 +install: + for page in $(scdocs-y); do \ + section=$${page#*.}; \ + $(INSTALLDIR) $(DESTDIR)$(MANDIR)/man$$section; \ + $(INSTALL) $(obj)/$$page $(DESTDIR)$(MANDIR)/man$$section/; \ + done |