Perhaps I am missing something here but doesn't the following do what you are looking for? When I use the stdout redirection to stderr like in the original (1>&2), I get strange behavior. When I omit it, it seems to do what you are looking to do.

i used 1>&2 to see when the shell-comand is executed.


t1: hallo :=$(shell echo hallo)

t1:
   echo $(hallo)

t2:
   echo $(hallo)

the shell-command is executed even if i say "make t2". the shell-command should only be executed once and only if the rule t1 gets executed.




_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to