|
From: | Sven Köhler |
Subject: | Re: target-specific variables |
Date: | Mon, 15 Mar 2004 14:50:55 +0100 |
User-agent: | Mozilla Thunderbird 0.5 (Windows/20040207) |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |