git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation/Makefile: fix lint-docs mkdir dependency

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 28, 2021, 00:03 UTC
Message-ID
<xmqqlf2et3r3.fsf@gitster.g>
In-Reply-To
<YXeu4Hl2cmIPqobd@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 13 quoted lines
> Since 8650c6298c (doc lint: make "lint-docs" non-.PHONY, 2021-10-15), we
> put the output for gitlink linter into .build/lint-docs/gitlink. There
> are order-only dependencies to create the sequence of subdirs like:
>
>   .build/lint-docs: | .build
>           $(QUIET)mkdir $@
>   .build/lint-docs/gitlink: | .build/lint-docs
>           $(QUIET)mkdir $@
>
> where each level has to depend on the prior one (since the parent
> directory must exist for us to create something inside it). But the
> "howto" and "config" subdirectories of gitlink have the wrong
> dependency; they depend on "lint-docs", not "lint-docs/gitlink".
Thanks.

I wonder if we can somehow avoid this unwieldy chain of commands, perhaps with using "mkdir -p" somewhere, or make the lint scripts create the necessary leading paths. From the looks of the tail end of Documentation/Makefile, the latter may be the cleaner solution.

Previous: Jeff KingNext: Ævar Arnfjörð Bjarmason
Message 4 of 9 in “Documentation/Makefile: fix lint-docs mkdir dependency”
  1. Documentation/Makefile: fix lint-docs mkdir dependencyJeff King, Oct 26, 2021
  2. Ævar Arnfjörð BjarmasonOct 26, 2021
  3. Jeff KingOct 26, 2021
  4. Junio C HamanoOct 28, 2021
  5. Ævar Arnfjörð BjarmasonOct 28, 2021
  6. Jeff KingOct 28, 2021
  7. Junio C HamanoOct 28, 2021
  8. Jeff KingOct 28, 2021
  9. Ævar Arnfjörð BjarmasonOct 28, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.