mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
build: docs -- Use autogenerated footer
We can generate footer dynamically and provide criu.8 version the same as the program has. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
1fc5c0244b
commit
6fe502dc80
2 changed files with 13 additions and 5 deletions
|
|
@ -5,6 +5,7 @@ ASCIIDOC := asciidoc
|
|||
A2X := a2x
|
||||
XMLTO := xmlto
|
||||
|
||||
FOOTER := footer.txt
|
||||
SRC += criu.txt
|
||||
XMLS := $(patsubst %.txt,%.xml,$(SRC))
|
||||
MANS := $(patsubst %.txt,%.8,$(SRC))
|
||||
|
|
@ -26,6 +27,16 @@ check:
|
|||
$$B --version > /dev/null || exit 1; \
|
||||
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
|
||||
$(call msg-gen, $@)
|
||||
$(Q) $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.8,%.xml,$@) $<
|
||||
|
|
@ -41,7 +52,7 @@ check:
|
|||
|
||||
clean:
|
||||
$(call msg-clean, "Documentation")
|
||||
$(Q) rm -f $(XMLS) $(MANS) $(PSS) $(PDFS)
|
||||
$(Q) rm -f $(XMLS) $(MANS) $(PSS) $(PDFS) $(FOOTER)
|
||||
|
||||
install: $(MANS)
|
||||
$(E) " INSTALL " $(MANS)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
CRIU(8)
|
||||
=======
|
||||
:doctype: manpage
|
||||
:man source: criu
|
||||
:man version: 0.0.3
|
||||
:man manual: CRIU Manual
|
||||
include::footer.txt[]
|
||||
|
||||
NAME
|
||||
----
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue