Commit 4232439a authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

sphinx: Close link race

We can't start linking files from $(srcdir) to $(builddir) until we are
done populating files in $(builddir). Make sure we defer linking until
after all sphinx sources are ready.
parent b33f0173
......@@ -20,7 +20,7 @@ clean:
# use index.rst as an indicator if we have copied already
.PHONY: link_srcdir
link_srcdir:
link_srcdir: graphviz conf.py $(BUILT_SOURCES)
if test "x$(srcdir)" != "x$(builddir)" && test ! -f index.rst; then \
s=`realpath $(srcdir)`; \
for f in `cd $$s && find . -type f`; do \
......@@ -35,7 +35,7 @@ link_srcdir:
graphviz:
cd ../graphviz && $(MAKE) html
sphinx_prereq: link_srcdir graphviz conf.py
sphinx_prereq: link_srcdir
all: link_srcdir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment