]> git.cworth.org Git - notmuch/commitdiff
build/docs: move docstring prereq to file targets
authorDavid Bremner <david@tethera.net>
Thu, 10 Dec 2020 01:55:38 +0000 (21:55 -0400)
committerDavid Bremner <david@tethera.net>
Thu, 10 Dec 2020 01:55:38 +0000 (21:55 -0400)
Under a sufficiently high level of parallelism [1] there seems to be a
a race condition that allows sphinx-build to start running before the
docstrings are extracted. This change moves the docstring stamp from
the phony targets sphinx-html and sphinx-info to the file targets that
they depend on. I'm not sure why this makes things better, but I am
fairly confident it does not make things worse, and experimentally it
seems to eliminate the race condition.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976934


No differences found