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

2006-08-25 Thread Terry Jones
URL: Summary: Variable set with $(shell date '+%Y%m%d-%H%M%S') changes mid-make Project: make Submitted by: terrycojones Submitted on: Friday 08/25/2006 at 20:32 Severity: 3 - Normal

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-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-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