Message ID | 20231212221552.3622-10-donald.hunter@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | tools/net/ynl: Add 'sub-message' support to ynl | expand |
> +$(YNL_INDEX): $(YNL_RST_FILES) $(YNL_TOOL) > + $(Q)$(YNL_TOOL) -o $@ -x Isn't $(YNL_INDEX) depending to $(YNL_TOOL) indirectly since it depends on $(YNL_RST_FILES) ? I mean, do you really need the line above? > +$(YNL_RST_DIR)/%.rst: $(YNL_YAML_DIR)/%.yaml $(YNL_TOOL) > + $(Q)$(YNL_TOOL) -i $< -o $@
Breno Leitao <leitao@debian.org> writes: >> +$(YNL_INDEX): $(YNL_RST_FILES) $(YNL_TOOL) >> + $(Q)$(YNL_TOOL) -o $@ -x > > Isn't $(YNL_INDEX) depending to $(YNL_TOOL) indirectly since it depends > on $(YNL_RST_FILES) ? > > I mean, do you really need the line above? Sure, the transitive dependency is sufficient. I tend to add an explicit dependency for a script that gets run in a target. Happy to remove that change and respin if you prefer?
On Wed, Dec 13, 2023 at 09:42:52AM +0000, Donald Hunter wrote: > Breno Leitao <leitao@debian.org> writes: > > >> +$(YNL_INDEX): $(YNL_RST_FILES) $(YNL_TOOL) > >> + $(Q)$(YNL_TOOL) -o $@ -x > > > > Isn't $(YNL_INDEX) depending to $(YNL_TOOL) indirectly since it depends > > on $(YNL_RST_FILES) ? > > > > I mean, do you really need the line above? > > Sure, the transitive dependency is sufficient. I tend to add an explicit > dependency for a script that gets run in a target. > > Happy to remove that change and respin if you prefer? I would say it is preferred to remove unnecessary code. Feel free to add the following line in the new version: Reviewed-by: Breno Leitao <leitao@debian.org> Thanks for addressing this.
On Wed, 13 Dec 2023 09:42:52 +0000 Donald Hunter wrote: > Sure, the transitive dependency is sufficient. I tend to add an explicit > dependency for a script that gets run in a target. > > Happy to remove that change and respin if you prefer? I can drop patch 9 when applying if that's what you mean. No need to repost the sub-message support.
On Wed, 13 Dec 2023 at 16:39, Jakub Kicinski <kuba@kernel.org> wrote: > > On Wed, 13 Dec 2023 09:42:52 +0000 Donald Hunter wrote: > > Sure, the transitive dependency is sufficient. I tend to add an explicit > > dependency for a script that gets run in a target. > > > > Happy to remove that change and respin if you prefer? > > I can drop patch 9 when applying if that's what you mean. > No need to repost the sub-message support. No, it's one line of patch 9 that needs to be dropped. > +$(YNL_INDEX): $(YNL_RST_FILES) $(YNL_TOOL) The other three lines should remain. I'll respin if you prefer.
On Wed, 13 Dec 2023 17:04:11 +0000 Donald Hunter wrote: > > I can drop patch 9 when applying if that's what you mean. > > No need to repost the sub-message support. > > No, it's one line of patch 9 that needs to be dropped. > > > +$(YNL_INDEX): $(YNL_RST_FILES) $(YNL_TOOL) > > The other three lines should remain. > > I'll respin if you prefer. Yeah, nah, I'm not editing the patch itself :)
diff --git a/Documentation/Makefile b/Documentation/Makefile index 5c156fbb6cdf..5f36a392ddfc 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -105,11 +105,11 @@ YNL_TOOL:=$(srctree)/tools/net/ynl/ynl-gen-rst.py 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 +$(YNL_INDEX): $(YNL_RST_FILES) $(YNL_TOOL) + $(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