mirror of https://github.com/aria2/aria2
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 :ppull/128/merge release-1.18.0
parent
4bd4aa2dc3
commit
7ca627bfe9
|
@ -49,14 +49,16 @@ help:
|
||||||
@echo " linkcheck to check all external links for integrity"
|
@echo " linkcheck to check all external links for integrity"
|
||||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||||
|
|
||||||
libaria2api: $(top_builddir)/src/includes/aria2/aria2.h
|
$(srcdir)/libaria2api: $(top_builddir)/src/includes/aria2/aria2.h
|
||||||
$(builddir)/mkapiref.py $^ > $@
|
$(srcdir)/mkapiref.py $^ > $@
|
||||||
|
|
||||||
|
html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest: $(srcdir)/libaria2api
|
||||||
|
|
||||||
docclean:
|
docclean:
|
||||||
-rm libaria2api
|
-rm $(srcdir)/libaria2api
|
||||||
-rm -rf $(BUILDDIR)/*
|
-rm -rf $(BUILDDIR)/*
|
||||||
|
|
||||||
html: libaria2api
|
html:
|
||||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||||
@echo
|
@echo
|
||||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||||
|
|
Loading…
Reference in New Issue