diff mbox

[02/11] docs: add rules for man 7 section

Message ID 20161209161714.23866-3-cbosdonnat@suse.com (mailing list archive)
State New, archived
Headers show

Commit Message

Cedric Bosdonnat Dec. 9, 2016, 4:17 p.m. UTC
Some of the docs/misc documents will need to go in man 7 section,
prepare docs/Makefile for it.

Signed-off-by: Cédric Bosdonnat <cbosdonnat@suse.com>
---
 .gitignore    | 1 +
 docs/Makefile | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

Comments

Wei Liu Jan. 4, 2017, 5:55 p.m. UTC | #1
On Fri, Dec 09, 2016 at 05:17:05PM +0100, Cédric Bosdonnat wrote:
> Some of the docs/misc documents will need to go in man 7 section,
> prepare docs/Makefile for it.
> 
> Signed-off-by: Cédric Bosdonnat <cbosdonnat@suse.com>

Acked-by: Wei Liu <wei.liu2@citrix.com>
Wei Liu Jan. 5, 2017, noon UTC | #2
On Fri, Dec 09, 2016 at 05:17:05PM +0100, Cédric Bosdonnat wrote:
> Some of the docs/misc documents will need to go in man 7 section,
> prepare docs/Makefile for it.
> 
> Signed-off-by: Cédric Bosdonnat <cbosdonnat@suse.com>

Acked-by: Wei Liu <wei.liu2@citrix.com>
diff mbox

Patch

diff --git a/.gitignore b/.gitignore
index a2f34a14cb..7584956383 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,6 +45,7 @@  docs/man/xl.cfg.pod.5
 docs/man/xl.pod.1
 docs/man1/
 docs/man5/
+docs/man7/
 docs/man8/
 docs/pdf/
 docs/txt/
diff --git a/docs/Makefile b/docs/Makefile
index d3f5eb607c..e064de0b77 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -10,6 +10,7 @@  DOC_ARCHES      := arm x86_32 x86_64
 # Documentation sources to build
 MAN1SRC-y := $(sort $(shell find man/ -regex '.*\.\(pod\|markdown\)\.1' -print))
 MAN5SRC-y := $(sort $(shell find man/ -regex '.*\.\(pod\|markdown\)\.5' -print))
+MAN7SRC-y := $(sort $(shell find man/ -regex '.*\.\(pod\|markdown\)\.7' -print))
 MAN8SRC-y := $(sort $(shell find man/ -regex '.*\.\(pod\|markdown\)\.8' -print))
 
 MARKDOWNSRC-y := $(sort $(shell find misc -name '*.markdown' -print))
@@ -23,15 +24,19 @@  DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(MAN1SRC-y)) \
 	        $(patsubst man/%.markdown.1,man1/%.1,$(MAN1SRC-y))
 DOC_MAN5 := $(patsubst man/%.pod.5,man5/%.5,$(MAN5SRC-y)) \
 	        $(patsubst man/%.markdown.5,man5/%.5,$(MAN5SRC-y))
+DOC_MAN7 := $(patsubst man/%.pod.7,man7/%.7,$(MAN7SRC-y)) \
+	        $(patsubst man/%.markdown.7,man7/%.7,$(MAN7SRC-y))
 DOC_MAN8 := $(patsubst man/%.pod.8,man8/%.8,$(MAN8SRC-y)) \
 	        $(patsubst man/%.markdown.8,man8/%.8,$(MAN8SRC-y))
 DOC_HTML := $(patsubst %.markdown,html/%.html,$(MARKDOWNSRC-y)) \
             $(patsubst %.pandoc,html/%.html,$(PANDOCSRC-y)) \
             $(patsubst man/%.markdown.1,html/man/%.1.html,$(MAN1SRC-y)) \
             $(patsubst man/%.markdown.5,html/man/%.5.html,$(MAN5SRC-y)) \
+            $(patsubst man/%.markdown.7,html/man/%.7.html,$(MAN7SRC-y)) \
             $(patsubst man/%.markdown.8,html/man/%.8.html,$(MAN8SRC-y)) \
             $(patsubst man/%.pod.1,html/man/%.1.html,$(MAN1SRC-y)) \
             $(patsubst man/%.pod.5,html/man/%.5.html,$(MAN5SRC-y)) \
+            $(patsubst man/%.pod.7,html/man/%.7.html,$(MAN7SRC-y)) \
             $(patsubst man/%.pod.8,html/man/%.8.html,$(MAN8SRC-y)) \
             $(patsubst %.txt,html/%.txt,$(TXTSRC-y)) \
             $(patsubst %,html/hypercall/%/index.html,$(DOC_ARCHES))
@@ -40,9 +45,11 @@  DOC_TXT  := $(patsubst %.txt,txt/%.txt,$(TXTSRC-y)) \
             $(patsubst %.pandoc,txt/%.txt,$(PANDOCSRC-y)) \
             $(patsubst man/%.markdown.1,txt/man/%.1.txt,$(MAN1SRC-y)) \
             $(patsubst man/%.markdown.5,txt/man/%.5.txt,$(MAN5SRC-y)) \
+            $(patsubst man/%.markdown.7,txt/man/%.7.txt,$(MAN7SRC-y)) \
             $(patsubst man/%.markdown.8,txt/man/%.8.txt,$(MAN8SRC-y)) \
             $(patsubst man/%.pod.1,txt/man/%.1.txt,$(MAN1SRC-y)) \
             $(patsubst man/%.pod.5,txt/man/%.5.txt,$(MAN5SRC-y)) \
+            $(patsubst man/%.pod.7,txt/man/%.7.txt,$(MAN7SRC-y)) \
             $(patsubst man/%.pod.8,txt/man/%.8.txt,$(MAN8SRC-y))
 DOC_PDF  := $(patsubst %.markdown,pdf/%.pdf,$(MARKDOWNSRC-y)) \
             $(patsubst %.pandoc,pdf/%.pdf,$(PANDOCSRC-y))
@@ -166,7 +173,7 @@  clean-man-pages: clean-man$(1)-pages
 endef
 
 # Generate manpage rules for each section
-$(foreach i,1 5 8,$(eval $(call GENERATE_MANPAGE_RULES,$(i))))
+$(foreach i,1 5 7 8,$(eval $(call GENERATE_MANPAGE_RULES,$(i))))
 
 .PHONY: install-html
 install-html: html txt figs