]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Explicitly specify sphinx-build cache directories
authorMichał Kępień <michal@isc.org>
Wed, 3 Feb 2021 11:18:45 +0000 (12:18 +0100)
committerMichał Kępień <michal@isc.org>
Wed, 3 Feb 2021 11:18:45 +0000 (12:18 +0100)
When sphinx-build is invoked without the -d command line switch, the
default path to the directory in which cached environment and doctree
files are placed is OUTPUTDIR/.doctrees.  This causes the contents of
such cache directories to needlessly be included in BIND release
directories.  Avoid that by employing the -d command line switch to make
each sphinx-build process use a cache directory outside the output
directory.  Make sure these cache directories are separate from each
other as well, to prevent multiple sphinx-build processes running in
parallel from interfering with each other.

doc/arm/Makefile.in
doc/man/Makefile.in

index 3f653b794c7e0d5b180caa3acc2dee09d3a21e0e..fba3cee7fcbf10ab64388f522188a12fc950f985 100644 (file)
@@ -57,10 +57,10 @@ man:: $(man1_MANS) $(man5_MANS) $(man8_MANS) @PKCS11_MANS@
 doc:: @HTMLTARGET@ @PDFTARGET@
 
 html dirhtml:
-       $(SPHINXBUILD) -b $@ $(ALLSPHINXOPTS) "$(SPHINXBUILDDIR)"/$@
+       $(SPHINXBUILD) -b $@ -d "$(SPHINXBUILDDIR)"/.doctrees/$@ $(ALLSPHINXOPTS) "$(SPHINXBUILDDIR)"/$@
 
 pdf:
-       $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) "$(SPHINXBUILDDIR)"/latex
+       $(SPHINXBUILD) -b latex -d "$(SPHINXBUILDDIR)"/.doctrees/$@ $(ALLSPHINXOPTS) "$(SPHINXBUILDDIR)"/latex
        make -C "$(SPHINXBUILDDIR)"/latex
        cp "$(SPHINXBUILDDIR)"/latex/Bv9ARM.pdf "${builddir}"
 
index 81d3681972326921b9f1c80d26ae5b7c352a8f7e..240ae023511b032a29f3d63bda7cadf0ff227321 100644 (file)
@@ -182,7 +182,7 @@ man:: ootsetup $(man1_MANS) $(man5_MANS) $(man8_MANS) @DNSTAP_MANS@ @NZD_MANS@ @
 doc:: @HTMLTARGET@ @PDFTARGET@
 
 html dirhtml:
-       $(SPHINXBUILD) -b $@ $(ALLSPHINXOPTS) "$(SPHINXBUILDDIR)"/$@
+       $(SPHINXBUILD) -b $@ -d "$(SPHINXBUILDDIR)"/.doctrees/$@ $(ALLSPHINXOPTS) "$(SPHINXBUILDDIR)"/$@
 
 # copy in out-of-tree files in case sphinx-build isn't available
 .NOTPARALLEL:
@@ -192,7 +192,7 @@ ootsetup: $(MANPAGES_IN)
        done
 
 $(MANPAGES_IN): $(MANPAGES_RST)
-       $(SPHINXBUILD) -b man $(man_SPHINXOPTS) "$(SPHINXBUILDDIR)"/man
+       $(SPHINXBUILD) -b man -d "$(SPHINXBUILDDIR)"/.doctrees/$@ $(man_SPHINXOPTS) "$(SPHINXBUILDDIR)"/man
        -for man in $(MANPAGES_IN); do \
          [ -e "$(SPHINXBUILDDIR)"/man/"$$(basename $$man in)" ] && \
            cp -f "$(SPHINXBUILDDIR)"/man/"$$(basename $$man in)" "$$man"; \