Hi Junio,

On Thu, 9 Oct 2014, Junio C Hamano wrote:

> Isn't the primary reason we use colon-assign to avoid running the same
> $(shell) over and over again every time $(uname_?) gets referenced? How
> would it work with ?= ???

I was under the impression that ?= would only define the variable once,
the next time ?= would be encountered, no assignment (and actually, no
evaluation) would take place because the variable already has a value?

According to

        https://www.gnu.org/software/make/manual/make.html#index-_003f_003d

        FOO ?= bar

        is exactly equivalent to this (see The origin Function):

        ifeq ($(origin FOO), undefined)
          FOO = bar
        endif

> Pardon misspellings and grammos, typed on a tablet.

No worries. But you really should use your tablet for reading books after
midnight instead of doing work... ;-)

Ciao,
Dscho
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to