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