[<prev] [next>] [day] [month] [year] [list]
Message-ID: <8db0faccc31c283a3ed9353e71ad396af17dd123.1758492447.git.mchehab+huawei@kernel.org>
Date: Mon, 22 Sep 2025 00:07:28 +0200
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: "Jonathan Corbet" <corbet@....net>,
Linux Doc Mailing List <linux-doc@...r.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
"Mauro Carvalho Chehab" <mchehab+huawei@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...nel.org>
---
Documentation/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
--
2.51.0
Powered by blists - more mailing lists