Re: [PATCH 1/2] docs: Makefile: use latexmk if available

From: Jonathan Corbet
Date: Mon Apr 01 2019 - 16:43:23 EST


On Sat, 30 Mar 2019 10:45:58 -0300
Mauro Carvalho Chehab <mchehab+samsung@xxxxxxxxxx> wrote:

> In the past, Sphinx was generating a LaTex Makefile that would
> run xelatex 3 times. Running it multiple times is needed in order
> to make the indexes right.
>
> However, newer versions of it runs it just once, as it expects
> the machine to use the "latexmk" build, with automatically
> detects the need for rebuilds.
>
> So, add a logic at the Makefile in order to detect if latexmk
> is installed. If so, it will call it.
>
> As an additional bonus, the output of latexmk is a little bit
> better, making easier to identify build problems.

Seems to work. I've applied both, thanks.

jon