doc: fix for parallel make

Move the *_8h.xml files to a per-chapter temporary file so two
chapters can be converted from doxygen at the same time. Tested
with make -j 9.

Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
Bill Spitzak 2014-12-16 19:23:02 -08:00 committed by Pekka Paalanen
parent c985a17988
commit 3f05c4ac4a

View file

@ -94,11 +94,12 @@ $(builddir)/en-US/ProtocolInterfaces.xml: $(top_srcdir)/protocol/wayland.xml $(s
# * use doxygen's combine.xslt to merge the xml files into one single file # * use doxygen's combine.xslt to merge the xml files into one single file
# * move wayland-<foo>_8h.xml back to its original location # * move wayland-<foo>_8h.xml back to its original location
$(builddir)/en-US/%API.xml.tmp: $(doxydir)/xml/%/index.xml | $(builddir)/en-US $(builddir)/en-US/%API.xml.tmp: $(doxydir)/xml/%/index.xml | $(builddir)/en-US
$(AM_V_at)mv $(doxydir)/xml/$*/wayland-$*_8h.xml \ $(AM_V_at)$(MKDIR_P) $(doxydir)/xml/$*/saved
$(doxydir)/xml/ $(AM_V_at)mv $(doxydir)/xml/$*/wayland-*_8h.xml \
$(doxydir)/xml/$*/saved
$(AM_V_GEN)$(XSLTPROC) $(doxydir)/xml/$*/combine.xslt \ $(AM_V_GEN)$(XSLTPROC) $(doxydir)/xml/$*/combine.xslt \
$(doxydir)/xml/$*/index.xml > $@ $(doxydir)/xml/$*/index.xml > $@
$(AM_V_at)mv $(doxydir)/xml/wayland-$*_8h.xml \ $(AM_V_at)mv $(doxydir)/xml/$*/saved/* \
$(doxydir)/xml/$* $(doxydir)/xml/$*
# WaylandClientAPI.xml: # WaylandClientAPI.xml: