Hi,

I must be missing something obvious... I'm using the shell function in
my Makefile with a recursive variable, however, it seems the command
in my shell function is only being evaluated once. I've tried this on
two different Linux distributions and get the same result; from
everything I read (even in the O'Reilly GNU Make book), this should
not be working this way. See below for an example:

--snip--
[marc.smith@catskill testing]$ cat Makefile
blah = $(shell date)

all:
        @ echo $(blah)
        @ sleep 10
        @ echo $(blah)
--snip--


--snip--
[marc.smith@catskill testing]$ make
Mon Nov 14 09:51:14 EST 2011
Mon Nov 14 09:51:14 EST 2011
--snip--


--snip--
[marc.smith@catskill testing]$ make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-redhat-linux-gnu
--snip--

I gotta be missing something obvious -- right?


--Marc

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to