Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Re: [PATCH 14/14] MINGW: config.mak.uname: auto-detect MinGW build from compiler

From: Johannes Schindelin <hidden>
Date: 2016-06-15 23:02:41

Hi Junio,

On Thu, 9 Oct 2014, Junio C Hamano wrote:
I didn't mean multiple uses of ?= for the same variable. I meant
multiple uses of (references to) the variable. I.e. wouldn't FOO and
BAR behave differently below?

FOO := $(shell random)
BAR = $(shell random)
all::
   echo $(FOO) and $(BAR)
   echo twice $(FOO) and $(BAR)
You're correct, of course, my mistake. I just tested with this:

	R ?= $(shell echo $$RANDOM)

	all:
		echo The values of $(R), $(R) and $(R)

and of course a "make" yields three different numbers. Sorry for missing
that.

So what we should do is something like

	ifeq ($(uname_S),)
		uname_S := $(shell uname -s)
	endif

even if repeating that pattern is kind of ugly...

Thanks for correcting my mistake,
Dscho

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Git for Windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help