# HG changeset patch # User Rik # Date 1346372330 25200 # Node ID df3939195fbb035886f3b926e445a15eef2a7f21 # Parent 219dcb37bdf9e5dd5cbff1768f23f63959966e47 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. diff -r 219dcb37bdf9 -r df3939195fbb doc/faq/Makefile.am --- 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: diff -r 219dcb37bdf9 -r df3939195fbb doc/interpreter/Makefile.am --- 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: diff -r 219dcb37bdf9 -r df3939195fbb doc/liboctave/Makefile.am --- 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: