Fix out-of-tree builds of libaria2api

Also it's not just the `html` target that needs libaria2api generated.

The fix is mighty ackward, as it is not really out-of-tree: libaria2api
still will be but into the srcdir. I settled for this because trying to
do a real include from the build dir is really a mess, either requireing
heavy pre-processing or a custom sphinx Include directive :p
This commit is contained in:
Nils Maier 2013-09-09 23:31:42 +02:00
parent 4bd4aa2dc3
commit 7ca627bfe9

View File

@ -49,14 +49,16 @@ help:
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
libaria2api: $(top_builddir)/src/includes/aria2/aria2.h
$(builddir)/mkapiref.py $^ > $@
$(srcdir)/libaria2api: $(top_builddir)/src/includes/aria2/aria2.h
$(srcdir)/mkapiref.py $^ > $@
html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest: $(srcdir)/libaria2api
docclean:
-rm libaria2api
-rm $(srcdir)/libaria2api
-rm -rf $(BUILDDIR)/*
html: libaria2api
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."