summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@intel.com>2012-10-11 17:42:07 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-10-15 11:45:50 -0400
commit99c55c9611ce587044cac712222daa8776bfa596 (patch)
tree25ffbbc37876ba3f0da463ed14fb0114b2c68450
parent2533ed10580240662074093e9a75271889136c0a (diff)
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>
-rw-r--r--doc/Wayland/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/Wayland/Makefile.am b/doc/Wayland/Makefile.am
index 600bf86..2fa3f9c 100644
--- a/doc/Wayland/Makefile.am
+++ b/doc/Wayland/Makefile.am
@@ -38,8 +38,13 @@ $(builddir)/en-US/%: $(srcdir)/en_US/% en-US/ProtocolSpec.xml en-US/ProtocolInte
$(AM_V_GEN)cp -f $< $@
# 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)
+ $(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 \
--config $(srcdir)/publican.cfg
@touch Wayland