summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2025-09-22 13:27:39 +0200
committerJonathan Corbet <corbet@lwn.net>2025-09-25 11:07:18 -0600
commit683dd3f79a3140e11d2e6f4a5320f3ea42e63878 (patch)
tree2ce71eae4d19d5fface30b13699326b4e63a8b23
parent35b9d338e40142c71b7270cc69b2b5fa1f24cc29 (diff)
docs: Makefile: fix rustdoc detection
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>
-rw-r--r--Documentation/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index cc4ee55c75ed..c60db1038c9c 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -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)