Re: [bug #17529] Variable set with $(shell date '+%Y%m%d-%H%M%S') changes mid-make

2006-08-26 Thread Sam Ravnborg
On Sat, Aug 26, 2006 at 03:06:33AM +0200, Terry Jones wrote: > Hi Martin > > | > base = xxx-$(shell date '+%Y%m%d-%H%M%S') > | > | Perhaps you wanted := instead of =. The difference is explained in (for > | example): > | > | http://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.ht

RE: [bug #17529] Variable set with $(shell date '+%Y%m%d-%H%M%S') changes mid-make

2006-08-26 Thread Terry Jones
(base) && echo $(base) && echo $(base) && echo $(base) && echo $(base) I would expect to see all the echoes (i.e., in a single make invocation) produce the same value. But they don't - see the last set below. Regards, Terry terry:~/s/net/make-3.81 $ ./make -

RE: [bug #17529] Variable set with $(shell date '+%Y%m%d-%H%M%S') changes mid-make

2006-08-26 Thread Terry Jones
Hi Martin | > base = xxx-$(shell date '+%Y%m%d-%H%M%S') | | Perhaps you wanted := instead of =. The difference is explained in (for | example): | | http://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.html | #Reading-Makefiles Thanks for the pointer. But, at least as I read that