Re: [PATCH 2/8] Documentation/Makefile: conditionally include ../GIT-VERSION-FILE
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 6, 2020, 21:43 UTC
- Message-ID
- <xmqqsg9mduuy.fsf@gitster.c.googlers.com>
- In-Reply-To
- <a654c95f-2367-5805-d4f8-56c466a141d4@ramsayjones.plus.com>
Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
Show 14 quoted lines
>> It's built around evals. In fact, I suspect you could build a >> function around eval that actually works similar to include, but >> lazy-loads the file only when one of its stubs is referenced. I.e., >> something like: >> >> GIT_VERSION = $(eval include GIT-VERSION-FILE) >> >> would probably work (and for other includes, multiple variables >> could mention the same file; as soon as it gets included, it >> overwrites the stubs). >> > > Heh, in another reply in this thread, I mentioned that I had an alternate > patch I was toying with.
Yup, I was wondering if you're going to present that variant, which I was more curious about.