[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: target-specific variables

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)

   echo $(hallo)

   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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]