Commit 6fe502dc authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

build: docs -- Use autogenerated footer

We can generate footer dynamically and
provide criu.8 version the same as
the program has.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 1fc5c024
...@@ -5,6 +5,7 @@ ASCIIDOC := asciidoc ...@@ -5,6 +5,7 @@ ASCIIDOC := asciidoc
A2X := a2x A2X := a2x
XMLTO := xmlto XMLTO := xmlto
FOOTER := footer.txt
SRC += criu.txt SRC += criu.txt
XMLS := $(patsubst %.txt,%.xml,$(SRC)) XMLS := $(patsubst %.txt,%.xml,$(SRC))
MANS := $(patsubst %.txt,%.8,$(SRC)) MANS := $(patsubst %.txt,%.8,$(SRC))
...@@ -26,6 +27,16 @@ check: ...@@ -26,6 +27,16 @@ check:
$$B --version > /dev/null || exit 1; \ $$B --version > /dev/null || exit 1; \
done done
$(FOOTER): ../Makefile.versions
$(call msg-gen, $@)
$(Q) echo ":doctype: manpage" > $@
$(Q) echo ":man source: criu" >> $@
$(Q) echo ":man version: $(CRIU_VERSION)" >> $@
$(Q) echo ":man manual: CRIU Manual" >> $@
$(SRC): $(FOOTER)
@true
%.8: %.txt %.8: %.txt
$(call msg-gen, $@) $(call msg-gen, $@)
$(Q) $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.8,%.xml,$@) $< $(Q) $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.8,%.xml,$@) $<
...@@ -41,7 +52,7 @@ check: ...@@ -41,7 +52,7 @@ check:
clean: clean:
$(call msg-clean, "Documentation") $(call msg-clean, "Documentation")
$(Q) rm -f $(XMLS) $(MANS) $(PSS) $(PDFS) $(Q) rm -f $(XMLS) $(MANS) $(PSS) $(PDFS) $(FOOTER)
install: $(MANS) install: $(MANS)
$(E) " INSTALL " $(MANS) $(E) " INSTALL " $(MANS)
......
CRIU(8) CRIU(8)
======= =======
:doctype: manpage include::footer.txt[]
:man source: criu
:man version: 0.0.3
:man manual: CRIU Manual
NAME NAME
---- ----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment