Thread (1 message) 1 message, 1 author, 2020-11-06

Re: [PATCH 2/8] Documentation/Makefile: conditionally include ../GIT-VERSION-FILE

From: Junio C Hamano <hidden>
Date: 2020-11-06 21:43:41

Ramsay Jones [off-list ref] writes:
quoted
    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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help