• Nils Goroll's avatar
    use a real target for the `$(srcdir)` to `$(builddir)` links for sphinx · 803b9a0c
    Nils Goroll authored
    The phony target was executed unconditionally and would thus race.
    
    A real target (using `index.rst`) does not race and has the additional
    advantage of simplifying the code (avoiding a condition in the shell
    code).
    
    It seems (at least GNU) `make` outsmarts the attempt to use a file from
    `$(srcdir)` as a marker for the link to have succeeded when
    `$(builddir)/index.rst` is used as the target.
    Using `$(abs_builddir)` seems to dtrt.
    
    Largely unrelated to this issue: The links are required for targets in
    `BUILT_SOURCES`, so previously I added a dependency to the `all` target.
    Having the link target in `BUILD_SOURCES` seems to be the better option.
    
    Fixes #3370 (I hope)
    803b9a0c
Name
Last commit
Last update
.circleci Loading commit data...
.github Loading commit data...
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
tools Loading commit data...
.dir-locals.el Loading commit data...
.envrc Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
.syntastic_c_config Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.Packaging Loading commit data...
README.rst Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
flint.lnt Loading commit data...
varnish-legacy.m4 Loading commit data...
varnish.m4 Loading commit data...
varnishapi-uninstalled.pc.in Loading commit data...
varnishapi.pc.in Loading commit data...
vtc.am Loading commit data...