Kaynağa Gözat

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
Nils Maier 12 yıl önce
ebeveyn
işleme
7ca627bfe9
1 değiştirilmiş dosya ile 6 ekleme ve 4 silme
  1. 6 4
      doc/manual-src/en/Makefile.am

+ 6 - 4
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."