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

Re: [PATCH] Makefile: extend NO_TCLTK=NoThanks to cover docs

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 15, 2018, 17:10 UTC
Message-ID
<xmqq1sazk12m.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<xmqq7ekrk1q0.fsf@gitster-ct.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
>>  # Guard against environment variables
>>  MAN1_TXT =
>> +MAN1_TXT_WIP =
>> +TCLTK_FILES =
>
> The latter name loses the fact that it is to hold candidates to be
> on MAN1_TXT that happen to be conditionally included; calling it
> MAN1_TXT_TCLTK or something, perhaps, may be an improvement.
>
> The former name makes it look it is work-in-progress, but in fact
> they are definite and unconditional part of MAN1_TXT.  Perhaps
> MAN1_TXT_CORE or something?

Sorry, I misread the patch. You collect all possible MAN1_TXT candidates on _WIP, so "this is unconditional core part" is wrong. Work-in-progress still sounds a bit funny, but now I know what is going on a bit better, it has become at last understandable ;-)

Show 11 quoted lines
>> +ifndef NO_TCLTK
>> +MAN1_TXT_WIP += gitk.txt
>> +MAN1_TXT = $(MAN1_TXT_WIP)
>> +else
>> +TCLTK_FILES += git-gui.txt
>> +TCLTK_FILES += gitk.txt
>> +TCLTK_FILES += git-citool.txt
>> +MAN1_TXT = $(filter-out \
>> +		$(TCLTK_FILES), \
>> +		$(MAN1_TXT_WIP))
>> +endif

I didn't notice it when I read it for the first time, but asymmetry between these two looks somewhat strange. If we are adding gitk.txt when we are not declining TCLTK based programs, why can we do without adding git-gui and git-citool at the same time? If we know we must add gitk.txt when we are not declining TCLTK based programs to MAN1_TXT_WIP in this section, it must mean that when we do not want TCLTK based programs, MAN1_TXT_WIP would not have gitk.txt on it, so why do we even need it on TCLTK_FILES list to filter it out?

Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 3 of 6 in “Makefile: extend NO_TCLTK=NoThanks to cover docs”
  1. Makefile: extend NO_TCLTK=NoThanks to cover docsÆvar Arnfjörð Bjarmason, Aug 15, 2018
  2. Junio C HamanoAug 15, 2018
  3. Junio C HamanoAug 15, 2018
  4. Ævar Arnfjörð BjarmasonAug 15, 2018
  5. Junio C HamanoAug 15, 2018
  6. Jonathan NiederAug 17, 2018

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.