[PATCH] doc: fix for parallel make

Bill Spitzak spitzak at gmail.com
Tue Dec 16 18:08:56 PST 2014


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.

Sorry my bad
---
 doc/publican/Makefile.am |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/publican/Makefile.am b/doc/publican/Makefile.am
index ac32c03..6f13aef 100644
--- a/doc/publican/Makefile.am
+++ b/doc/publican/Makefile.am
@@ -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
 # * move wayland-<foo>_8h.xml back to its original location
 $(builddir)/en-US/%API.xml.tmp: $(doxydir)/xml/%/index.xml | $(builddir)/en-US
+	@mkdir -p $(doxydir)/xml/$*/saved
 	$(AM_V_at)mv $(doxydir)/xml/$*/wayland-*_8h.xml \
-		$(doxydir)/xml/
+		$(doxydir)/xml/$*/saved
 	$(AM_V_GEN)$(XSLTPROC) $(doxydir)/xml/$*/combine.xslt \
 		$(doxydir)/xml/$*/index.xml > $@
-	$(AM_V_at)mv $(doxydir)/xml/wayland-*_8h.xml \
+	$(AM_V_at)mv $(doxydir)/xml/$*/saved/* \
 		$(doxydir)/xml/$*
 
 $(builddir)/en-US/%API.xml: $(builddir)/en-US/%API.xml.tmp $(srcdir)/doxygen-to-publican.xsl
-- 
1.7.9.5



More information about the wayland-devel mailing list