]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
docs: Makefile: use PYTHONPYCACHEPREFIX
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 1 Oct 2025 14:15:26 +0000 (16:15 +0200)
committerJonathan Corbet <corbet@lwn.net>
Wed, 1 Oct 2025 14:51:10 +0000 (08:51 -0600)
Previous cleanup patches ended dropping it when sphinx-build-wrapper
were added. Also, sphinx-pre-install can also generate caches.

So, re-add it for both.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <8c37576342994ea0e3466eec2602a8d989d9a5f0.1759328070.git.mchehab+huawei@kernel.org>

Documentation/Makefile

index f764604fa1ac4d8ed742c5524abea933c56cb1f0..65d184eab739479a05770b32054ed9376656deaa 100644 (file)
@@ -60,8 +60,10 @@ else # HAVE_SPHINX
 
 # Common documentation targets
 htmldocs mandocs infodocs texinfodocs latexdocs epubdocs xmldocs pdfdocs linkcheckdocs:
-       $(Q)@$(srctree)/tools/docs/sphinx-pre-install --version-check
-       +$(Q)$(PYTHON3) $(BUILD_WRAPPER) $@ \
+       $(Q)PYTHONPYCACHEPREFIX="$(PYTHONPYCACHEPREFIX)" \
+               $(srctree)/tools/docs/sphinx-pre-install --version-check
+       +$(Q)PYTHONPYCACHEPREFIX="$(PYTHONPYCACHEPREFIX)" \
+               $(PYTHON3) $(BUILD_WRAPPER) $@ \
                --sphinxdirs="$(SPHINXDIRS)" $(RUSTDOC) \
                --builddir="$(BUILDDIR)" --deny-vf=$(FONTS_CONF_DENY_VF) \
                --theme=$(DOCS_THEME) --css=$(DOCS_CSS) --paper=$(PAPER)