]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: set release and section properly for manpages
authorEric Wong <e@80x24.org>
Wed, 31 Aug 2016 19:50:52 +0000 (19:50 +0000)
committerEric Wong <e@80x24.org>
Wed, 31 Aug 2016 19:50:52 +0000 (19:50 +0000)
This will be important as we will have more of them.

Documentation/include.mk

index 4583f9517a3dc7fd795e9a75c26b0b31d3f4590c..9d2c3b09dd83e29a97a8d80289be5e120fe855af 100644 (file)
@@ -9,6 +9,7 @@ docs += $(shell git ls-files 'Documentation/*.txt')
 INSTALL = install
 PODMAN = pod2man
 PODMAN_OPTS = -v --stderr -d 1993-10-02 -c 'public-inbox user manual'
+PODMAN_OPTS += -r public-inbox.git
 podman = $(PODMAN) $(PODMAN_OPTS)
 PODTEXT = pod2text
 PODTEXT_OPTS = --stderr
@@ -41,8 +42,8 @@ install-man: man
        test -z "$(man5)" || $(INSTALL) -m 644 $(man5) $(DESTDIR)$(man5dir)
        test -z "$(man7)" || $(INSTALL) -m 644 $(man7) $(DESTDIR)$(man7dir)
 
-%.1 : Documentation/%.pod
-       $(podman) -s 1 $< $@+ && mv $@+ $@
+%.1 %.5 %.7 %.8 : Documentation/%.pod
+       $(podman) -s $(subst .,,$(suffix $@)) $< $@+ && mv $@+ $@
 
 mantxt = $(addprefix Documentation/, $(addsuffix .txt, $(m1)))
 docs += $(mantxt)