]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
docs: Makefile: fix rustdoc detection
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Sep 2025 11:27:39 +0000 (13:27 +0200)
committerJonathan Corbet <corbet@lwn.net>
Thu, 25 Sep 2025 17:07:18 +0000 (11:07 -0600)
During cleanups, the logic checking if .config exists were dropped,
but removing it causes false-positives. So, re-add it.

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

Documentation/Makefile

index cc4ee55c75edaea68b96b1dbdf98b2cca24eb111..c60db1038c9c932e26c47b9373535e0e6f303b56 100644 (file)
@@ -42,8 +42,10 @@ FONTS_CONF_DENY_VF ?= $(HOME)/deny-vf
 # User-friendly check for sphinx-build
 HAVE_SPHINX := $(shell if which $(SPHINXBUILD) >/dev/null 2>&1; then echo 1; else echo 0; fi)
 
+ifneq ($(wildcard $(srctree)/.config),)
 ifeq ($(CONFIG_RUST),y)
-       RUSTDOC="--rustdoc"
+       RUSTDOC=--rustdoc
+endif
 endif
 
 ifeq ($(HAVE_SPHINX),0)