This is a note to let you know that I've just added the patch titled docs: Makefile: Add dependency to $(YNL_INDEX) for targets other than htmldocs to the 6.8-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: docs-makefile-add-dependency-to-ynl_index-for-target.patch and it can be found in the queue-6.8 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit 944504366b876d209544b3ad92660fad1dce2d3a Author: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Tue Mar 5 13:23:00 2024 +0900 docs: Makefile: Add dependency to $(YNL_INDEX) for targets other than htmldocs [ Upstream commit a304fa1d10fcb974c117d391e5b4d34c2baa9a62 ] Commit f061c9f7d058 ("Documentation: Document each netlink family") added recipes for YAML -> RST conversion. Then commit 7da8bdbf8f5d ("docs: Makefile: Fix make cleandocs by deleting generated .rst files") made sure those converted .rst files are cleaned by "make cleandocs". However, they took care of htmldocs build only. If one of other targets such as latexdocs or epubdocs is built without building htmldocs, missing .rst files can cause additional WARNINGs from sphinx-build as follow: ./Documentation/userspace-api/netlink/specs.rst:18: WARNING: undefined label: 'specs' ./Documentation/userspace-api/netlink/netlink-raw.rst:64: WARNING: unknown document: '../../networking/netlink_spec/rt_link' ./Documentation/userspace-api/netlink/netlink-raw.rst:64: WARNING: unknown document: '../../networking/netlink_spec/tc' ./Documentation/userspace-api/netlink/index.rst:21: WARNING: undefined label: 'specs' Add dependency to $(YNL_INDEX) for other targets and allow any targets to be built cleanly right after "make cleandocs". Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> Cc: stable@xxxxxxxxxxxxxxx # v6.7 Cc: Thorsten Blum <thorsten.blum@xxxxxxxxxx> Cc: Breno Leitao <leitao@xxxxxxxxxx> Cc: Jakub Kicinski <kuba@xxxxxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Reviwed-by: Breno Leitao <leitao@xxxxxxxxxx> Signed-off-by: Jonathan Corbet <corbet@xxxxxxx> Message-ID: <e876e3c8-109d-4bc8-9916-05a4bc4ee9ac@xxxxxxxxx> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/Documentation/Makefile b/Documentation/Makefile index 3885bbe260eb2..99cb6cbccb135 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -111,7 +111,9 @@ $(YNL_INDEX): $(YNL_RST_FILES) $(YNL_RST_DIR)/%.rst: $(YNL_YAML_DIR)/%.yaml $(YNL_TOOL) $(Q)$(YNL_TOOL) -i $< -o $@ -htmldocs: $(YNL_INDEX) +htmldocs texinfodocs latexdocs epubdocs xmldocs: $(YNL_INDEX) + +htmldocs: @$(srctree)/scripts/sphinx-pre-install --version-check @+$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,html,$(var),,$(var)))