Skip to content

Commit 646158f

Browse files
donaldhkuba-moo
authored andcommitted
doc/netlink: Regenerate netlink .rst files if ynl-gen-rst changes
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 <kuba@kernel.org> Reviewed-by: Breno Leitao <leitao@debian.org> Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Link: https://lore.kernel.org/r/20231215093720.18774-10-donald.hunter@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent a1bcfde commit 646158f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Documentation/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ YNL_RST_FILES_TMP := $(patsubst %.yaml,%.rst,$(wildcard $(YNL_YAML_DIR)/*.yaml))
106106
YNL_RST_FILES := $(patsubst $(YNL_YAML_DIR)%,$(YNL_RST_DIR)%, $(YNL_RST_FILES_TMP))
107107

108108
$(YNL_INDEX): $(YNL_RST_FILES)
109-
@$(YNL_TOOL) -o $@ -x
109+
$(Q)$(YNL_TOOL) -o $@ -x
110110

111-
$(YNL_RST_DIR)/%.rst: $(YNL_YAML_DIR)/%.yaml
112-
@$(YNL_TOOL) -i $< -o $@
111+
$(YNL_RST_DIR)/%.rst: $(YNL_YAML_DIR)/%.yaml $(YNL_TOOL)
112+
$(Q)$(YNL_TOOL) -i $< -o $@
113113

114114
htmldocs: $(YNL_INDEX)
115115
@$(srctree)/scripts/sphinx-pre-install --version-check

0 commit comments

Comments
 (0)