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

RE: [PATCH 2/3] Makefile: stop hardcoding {command,config}-list.h

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Jun 17, 2021, 20:14 UTC
Message-ID
<60cbad11b13f5_9bf20896@natae.notmuch>
In-Reply-To
<patch-2.3-6e164edb0b-20210617T095827Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason wrote:
> Change various places that hardcode the names of these two files to
> refer to either $(GENERATED_H), or to a new generated-hdrs
> target.

Avoiding hard-coded things is generally a good idea, and I can smell there's an advantage nearby, but it's not stated.

Can you spell out what you are trying to achieve?
> Hardcoding command-list.h there seems to have been a case of
> copy/paste programming in dce7d29551 (msvc: support building Git using
> MS Visual C++, 2019-06-25).
Actually that's not the commit, it's this one:

976aaedca0 (msvc: add a Makefile target to pre-generate the Visual Studio solution, 2019-07-29)

The changes themselves look good to me.
-- 
Felipe Contreras
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 7 of 15 in “Makefile: misc trivial fixes”
  1. 0/3 Makefile: misc trivial fixesÆvar Arnfjörð Bjarmason, Jun 17, 2021
  2. 1/3 Makefile: mark "check" target as .PHONYÆvar Arnfjörð Bjarmason, Jun 17, 2021
  3. Felipe ContrerasJun 17, 2021
  4. 3/3 Makefile: remove an out-of-date commentÆvar Arnfjörð Bjarmason, Jun 17, 2021
  5. Felipe ContrerasJun 17, 2021
  6. 2/3 Makefile: stop hardcoding {command,config}-list.hÆvar Arnfjörð Bjarmason, Jun 17, 2021
  7. Felipe ContrerasJun 17, 2021
  8. Ævar Arnfjörð BjarmasonJun 17, 2021
  9. Felipe ContrerasJun 17, 2021
  10. Ævar Arnfjörð BjarmasonJun 18, 2021
  11. 0/3 Makefile: misc trivial fixesÆvar Arnfjörð Bjarmason, Jun 29, 2021
  12. 1/3 Makefile: mark "check" target as .PHONYÆvar Arnfjörð Bjarmason, Jun 29, 2021
  13. 2/3 Makefile: stop hardcoding {command,config}-list.hÆvar Arnfjörð Bjarmason, Jun 29, 2021
  14. 3/3 Makefile: remove an out-of-date commentÆvar Arnfjörð Bjarmason, Jun 29, 2021
  15. Felipe ContrerasJun 29, 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.