docs: Makefile: Inherit PYTHONPYCACHEPREFIX setting as env variable
authorAkira Yokosawa <akiyks@gmail.com>
Thu, 1 May 2025 08:21:07 +0000 (17:21 +0900)
committerJonathan Corbet <corbet@lwn.net>
Wed, 7 May 2025 06:53:22 +0000 (00:53 -0600)
commita5b57bd9b1f9ff69327fa2e5bd272c8694e626fb
tree4a7c78c95a9955b823a6d9336547e71280b9ac87
parent40e71e32c8585e0b8655b14f09dd0cc24f6c2d8b
docs: Makefile: Inherit PYTHONPYCACHEPREFIX setting as env variable

Commit 6c2f0b28d76e ("docs: Makefile: store __pycache__ at the output
directory") assigns a new path to PYTHONPYCACHEPREFIX for building
kernel documentation.

However, it is not necessarily optimal for everyone.

If you find PYTHONPYCACHEPREFIX is already set, it strongly suggests
that the developer has selected the setting as best suited for one's own
workflow.

Use "?=" in the assignment to PYTHONPYCACHEPREFIX so that the path of
$(abspath $(BUILDDIR)/__pycache__) works only as a safeguard.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <0253ce98-960c-4498-8ace-a4354e3ebc26@gmail.com>
Documentation/Makefile