changeset 15267:df3939195fbb

Serialize texi2dvi and texi2pdf commands with Makefile rule Race condition is still present in texi2XXX comands from Tex and the problem isn't solved with using a separate build directory. * doc/faq/Makefile.am, doc/interpreter/Makefile.am, doc/liboctave/Makefile.am: Add Makefile rule to serialize dvi and pdf builds.
author Rik <rik@octave.org>
date Thu, 30 Aug 2012 17:18:50 -0700
parents 219dcb37bdf9
children 307912900544
files doc/faq/Makefile.am doc/interpreter/Makefile.am doc/liboctave/Makefile.am
diffstat 3 files changed, 18 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/doc/faq/Makefile.am	Thu Aug 30 16:47:36 2012 -0700
+++ b/doc/faq/Makefile.am	Thu Aug 30 17:18:50 2012 -0700
@@ -1,4 +1,4 @@
-# Makefile for octave's doc/faq directory
+# Makefile for Octave's doc/faq directory
 #
 # Copyright (C) 1996-2012 John W. Eaton
 #
@@ -26,6 +26,11 @@
 
 all-local: dvi html pdf ps
 
+## The texi2dvi script (used to create both PDF and DVI output formats)
+## uses some fixed temporary file names.  In order to avoid a race condition
+## the DVI and PDF builds are forced to run serially through a Makefile rule.
+OctaveFAQ.pdf: OctaveFAQ.dvi
+
 EXTRA_DIST = OctaveFAQ.dvi OctaveFAQ.html OctaveFAQ.pdf OctaveFAQ.ps
 
 clean-local:
--- a/doc/interpreter/Makefile.am	Thu Aug 30 16:47:36 2012 -0700
+++ b/doc/interpreter/Makefile.am	Thu Aug 30 17:18:50 2012 -0700
@@ -1,4 +1,4 @@
-# Makefile for octave's doc/interpreter directory
+# Makefile for Octave's doc/interpreter directory
 #
 # Copyright (C) 1993-2012 John W. Eaton
 #
@@ -170,6 +170,11 @@
 $(HTMLDIR_IMAGES): $(IMAGES_PNG) | octave.html
 	cp $(@F) octave.html
 
+## The texi2dvi script (used to create both PDF and DVI output formats)
+## uses some fixed temporary file names.  In order to avoid a race condition
+## the DVI and PDF builds are forced to run serially through a Makefile rule.
+octave.pdf: octave.dvi
+
 # Prevent packaging of distribution unless all libraries 
 # necessary to create documentation are present
 dist-hook:
--- a/doc/liboctave/Makefile.am	Thu Aug 30 16:47:36 2012 -0700
+++ b/doc/liboctave/Makefile.am	Thu Aug 30 17:18:50 2012 -0700
@@ -1,4 +1,4 @@
-# Makefile for octave's doc/liboctave directory
+# Makefile for Octave's doc/liboctave directory
 #
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 #               2005, 2006, 2007 John W. Eaton
@@ -48,6 +48,11 @@
 
 all-local: dvi html pdf ps
 
+## The texi2dvi script (used to create both PDF and DVI output formats)
+## uses some fixed temporary file names.  In order to avoid a race condition
+## the DVI and PDF builds are forced to run serially through a Makefile rule.
+liboctave.pdf: liboctave.dvi
+
 EXTRA_DIST = liboctave.dvi liboctave.html liboctave.pdf liboctave.ps
 
 clean-local: