Need to pull more tricks to make out-of-three build work

parent 2d71f887
......@@ -403,13 +403,26 @@ VSC_RST = \
BUILT_SOURCES = counters.rst
.PHONY: link_srcdir
link_srcdir: $(BUILT_SOURCES)
if test "x$(srcdir)" != "x$(builddir)" ; then \
s=`cd $(srcdir) && pwd`; \
for f in `cd $$s && find . -type f -name \*.rst`; do \
d=`dirname $$f`; \
test -d $$d || mkdir -p $$d; \
test -f $$f || ln -s $$s/$$f $$f; \
done \
fi
CLEANFILES += $(VSC_SOURCES) $(VSC_RST) $(BUILT_SOURCES)
counters.rst: $(VSC_RST)
$(AM_V_GEN) cat $(VSC_RST) >${@}_
@mv ${@}_ $@
slash-counters.7: counters.rst
slash-counters.rst: link_srcdir
slash-counters.7: counters.rst slash-counters.rst
nodist_libvmod_slash_la_SOURCES += $(VSC_SOURCES)
......
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