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

2006-08-28 Thread Martin Dorey
> http://www.gnu.org/software/make/manual/html_node/Flavors.html How about expanding: "The two flavors are distinguished in how they are defined and in what they do when expanded." To say: "The two flavors are distinguished in how they are defined, in what they do when expanded and in which ph

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

2006-08-27 Thread Terry Jones
Hi again Martin. | No. It might sound like that but that's definitely, definitely, definitely | not what happens. Deferred variables are expanded again every time they're | used. I thought perhaps I'd quoted the wrong part of the documentation | because, reading it again, I think you're right t

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
Here's another example that may be more illustrative. Given this Makefile: base = xxx-$(shell date '+%Y%m%d-%H%M%S') t: @echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo $

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

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

2006-08-25 Thread Martin Dorey
> all variables are expanded exactly once - whether they are immediate or > deferred No. It might sound like that but that's definitely, definitely, definitely not what happens. Deferred variables are expanded again every time they're used. I thought perhaps I'd quoted the wrong part of the doc

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

2006-08-25 Thread Martin Dorey
> 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 - Martin's Outlook, BlueArc Engineering