qemu-doc: include version number
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d59157ea05
commit
44cb280d33
17
Makefile
17
Makefile
|
@ -669,33 +669,26 @@ ui/console-gl.o: $(SRC_PATH)/ui/console-gl.c \
|
||||||
MAKEINFO=makeinfo
|
MAKEINFO=makeinfo
|
||||||
MAKEINFOINCLUDES= -I docs -I $(<D) -I $(@D)
|
MAKEINFOINCLUDES= -I docs -I $(<D) -I $(@D)
|
||||||
MAKEINFOFLAGS=--no-split --number-sections $(MAKEINFOINCLUDES)
|
MAKEINFOFLAGS=--no-split --number-sections $(MAKEINFOINCLUDES)
|
||||||
TEXI2PODFLAGS=$(MAKEINFOINCLUDES)
|
TEXI2PODFLAGS=$(MAKEINFOINCLUDES) "-DVERSION=$(VERSION)"
|
||||||
TEXI2PDFFLAGS=$(if $(V),,--quiet) -I $(SRC_PATH) $(MAKEINFOINCLUDES)
|
TEXI2PDFFLAGS=$(if $(V),,--quiet) -I $(SRC_PATH) $(MAKEINFOINCLUDES)
|
||||||
|
|
||||||
docs/version.texi: $(SRC_PATH)/VERSION
|
docs/version.texi: $(SRC_PATH)/VERSION
|
||||||
$(call quiet-command,echo "@set VERSION $(VERSION)" > $@,"GEN","$@")
|
$(call quiet-command,echo "@set VERSION $(VERSION)" > $@,"GEN","$@")
|
||||||
|
|
||||||
%.html: %.texi
|
%.html: %.texi docs/version.texi
|
||||||
$(call quiet-command,LC_ALL=C $(MAKEINFO) $(MAKEINFOFLAGS) --no-headers \
|
$(call quiet-command,LC_ALL=C $(MAKEINFO) $(MAKEINFOFLAGS) --no-headers \
|
||||||
--html $< -o $@,"GEN","$@")
|
--html $< -o $@,"GEN","$@")
|
||||||
|
|
||||||
%.info: %.texi
|
%.info: %.texi docs/version.texi
|
||||||
$(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) $< -o $@,"GEN","$@")
|
$(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) $< -o $@,"GEN","$@")
|
||||||
|
|
||||||
%.txt: %.texi
|
%.txt: %.texi docs/version.texi
|
||||||
$(call quiet-command,LC_ALL=C $(MAKEINFO) $(MAKEINFOFLAGS) --no-headers \
|
$(call quiet-command,LC_ALL=C $(MAKEINFO) $(MAKEINFOFLAGS) --no-headers \
|
||||||
--plaintext $< -o $@,"GEN","$@")
|
--plaintext $< -o $@,"GEN","$@")
|
||||||
|
|
||||||
%.pdf: %.texi
|
%.pdf: %.texi docs/version.texi
|
||||||
$(call quiet-command,texi2pdf $(TEXI2PDFFLAGS) $< -o $@,"GEN","$@")
|
$(call quiet-command,texi2pdf $(TEXI2PDFFLAGS) $< -o $@,"GEN","$@")
|
||||||
|
|
||||||
docs/interop/qemu-ga-ref.html docs/interop/qemu-ga-ref.info \
|
|
||||||
docs/interop/qemu-ga-ref.txt docs/interop/qemu-ga-ref.pdf \
|
|
||||||
docs/interop/qemu-ga-ref.7.pod: docs/version.texi
|
|
||||||
docs/interop/qemu-qmp-ref.html docs/interop/qemu-qmp-ref.info \
|
|
||||||
docs/interop/qemu-qmp-ref.txt docs/interop/qemu-qmp-ref.pdf \
|
|
||||||
docs/interop/qemu-qmp-ref.pod: docs/version.texi
|
|
||||||
|
|
||||||
qemu-options.texi: $(SRC_PATH)/qemu-options.hx $(SRC_PATH)/scripts/hxtool
|
qemu-options.texi: $(SRC_PATH)/qemu-options.hx $(SRC_PATH)/scripts/hxtool
|
||||||
$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@,"GEN","$@")
|
$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@,"GEN","$@")
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
\input texinfo @c -*- texinfo -*-
|
\input texinfo @c -*- texinfo -*-
|
||||||
@c %**start of header
|
@c %**start of header
|
||||||
@setfilename qemu-doc.info
|
@setfilename qemu-doc.info
|
||||||
|
@include version.texi
|
||||||
|
|
||||||
@documentlanguage en
|
@documentlanguage en
|
||||||
@documentencoding UTF-8
|
@documentencoding UTF-8
|
||||||
|
|
||||||
@settitle QEMU Emulator User Documentation
|
@settitle QEMU version @value{VERSION} User Documentation
|
||||||
@exampleindent 0
|
@exampleindent 0
|
||||||
@paragraphindent 0
|
@paragraphindent 0
|
||||||
@c %**end of header
|
@c %**end of header
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
@iftex
|
@iftex
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
@sp 7
|
||||||
@center @titlefont{QEMU Emulator}
|
@center @titlefont{QEMU version @value{VERSION}}
|
||||||
@sp 1
|
@sp 1
|
||||||
@center @titlefont{User Documentation}
|
@center @titlefont{User Documentation}
|
||||||
@sp 3
|
@sp 3
|
||||||
|
|
Loading…
Reference in New Issue