diff --git a/configure.ac b/configure.ac index 9a85d0f1..81b629ac 100644 --- a/configure.ac +++ b/configure.ac @@ -144,12 +144,13 @@ fi AC_CONFIG_FILES([Makefile libabigail.pc -include/Makefile -include/abg-version.h -doc/Makefile -src/Makefile -tools/Makefile -tests/Makefile]) + include/Makefile + include/abg-version.h + doc/Makefile + doc/manuals/Makefile + src/Makefile + tools/Makefile + tests/Makefile]) AC_OUTPUT diff --git a/doc/Makefile.am b/doc/Makefile.am index e977786c..516c8fb2 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,3 +1,4 @@ +SUBDIRS = manuals html: $(DO_HTML) install-html: $(DO_INSTALL_HTML) diff --git a/doc/manuals/Makefile b/doc/manuals/Makefile.am similarity index 98% rename from doc/manuals/Makefile rename to doc/manuals/Makefile.am index 8d04f319..c15a9c00 100644 --- a/doc/manuals/Makefile +++ b/doc/manuals/Makefile.am @@ -1,16 +1,16 @@ # Makefile for Sphinx documentation -# # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = -BUILDDIR = _build +BUILDDIR = $(builddir)/_build +SOURCEDIR = $(srcdir) # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR) # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .