From: Mauro Carvalho Chehab Date: Mon, 22 Sep 2025 11:27:39 +0000 (+0200) Subject: docs: Makefile: fix rustdoc detection X-Git-Tag: v6.19-rc1~184^2~60^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=683dd3f79a3140e11d2e6f4a5320f3ea42e63878;p=thirdparty%2Flinux.git 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 Signed-off-by: Jonathan Corbet Message-ID: --- diff --git a/Documentation/Makefile b/Documentation/Makefile index cc4ee55c75eda..c60db1038c9c9 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)