doc: publican: Automate version generation

It seems reasonable to use protocol's version for the documentation as well.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
This commit is contained in:
Tiago Vignatti 2012-10-11 17:42:07 +03:00 committed by Kristian Høgsberg
parent 2533ed1058
commit 99c55c9611

View file

@ -38,8 +38,13 @@ $(builddir)/en-US/%: $(srcdir)/en_US/% en-US/ProtocolSpec.xml en-US/ProtocolInte
$(AM_V_GEN)cp -f $< $@ $(AM_V_GEN)cp -f $< $@
# Run publican for the builddir on the generated (or copied) source # Run publican for the builddir on the generated (or copied) source
# The output formats are generated in the Wayland sub directory # The output formats are generated in the Wayland sub directory. Also, we need
# to use a tmp publican.cfg cause 'publican rename' modifies the original.
Wayland: $(publican_targets) Wayland: $(publican_targets)
$(AM_V_GEN)cp -f $(srcdir)/publican.cfg $(srcdir)/publican.cfg.tmp
$(AM_V_GEN)$(PUBLICAN) rename --name Wayland \
--version "$(WAYLAND_VERSION_MAJOR).$(WAYLAND_VERSION_MINOR)"
$(AM_V_GEN)mv -f $(srcdir)/publican.cfg.tmp $(srcdir)/publican.cfg
$(AM_V_GEN)$(PUBLICAN) build --lang en-US --format html,pdf \ $(AM_V_GEN)$(PUBLICAN) build --lang en-US --format html,pdf \
--config $(srcdir)/publican.cfg --config $(srcdir)/publican.cfg
@touch Wayland @touch Wayland