From 7ca627bfe954105ebf95b65f4047ef31464f8111 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Mon, 9 Sep 2013 23:31:42 +0200 Subject: [PATCH] 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 --- doc/manual-src/en/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/manual-src/en/Makefile.am b/doc/manual-src/en/Makefile.am index 4e20ede8..e354286b 100644 --- a/doc/manual-src/en/Makefile.am +++ b/doc/manual-src/en/Makefile.am @@ -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."