]> Git Repo - linux.git/commitdiff
doc/netlink: Regenerate netlink .rst files if ynl-gen-rst changes
authorDonald Hunter <[email protected]>
Fri, 15 Dec 2023 09:37:16 +0000 (09:37 +0000)
committerJakub Kicinski <[email protected]>
Mon, 18 Dec 2023 22:39:44 +0000 (14:39 -0800)
Add ynl-gen-rst.py to the dependencies for the netlink .rst files in the
doc Makefile so that the docs get regenerated if the ynl-gen-rst.py
script is modified. Use $(Q) to honour V=1 in the rules that run
ynl-gen-rst.py

Reviewed-by: Jakub Kicinski <[email protected]>
Reviewed-by: Breno Leitao <[email protected]>
Signed-off-by: Donald Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Documentation/Makefile

index 5c156fbb6cdf1e59067977851ec144945cbb8e2d..3885bbe260eb231d5354182675a00f31d15754c3 100644 (file)
@@ -106,10 +106,10 @@ YNL_RST_FILES_TMP := $(patsubst %.yaml,%.rst,$(wildcard $(YNL_YAML_DIR)/*.yaml))
 YNL_RST_FILES := $(patsubst $(YNL_YAML_DIR)%,$(YNL_RST_DIR)%, $(YNL_RST_FILES_TMP))
 
 $(YNL_INDEX): $(YNL_RST_FILES)
-       @$(YNL_TOOL) -o $@ -x
+       $(Q)$(YNL_TOOL) -o $@ -x
 
-$(YNL_RST_DIR)/%.rst: $(YNL_YAML_DIR)/%.yaml
-       @$(YNL_TOOL) -i $< -o $@
+$(YNL_RST_DIR)/%.rst: $(YNL_YAML_DIR)/%.yaml $(YNL_TOOL)
+       $(Q)$(YNL_TOOL) -i $< -o $@
 
 htmldocs: $(YNL_INDEX)
        @$(srctree)/scripts/sphinx-pre-install --version-check
This page took 0.045299 seconds and 4 git commands to generate.