<div dir="ltr"><div><div>I read the BBv2 documentation and samples. I don&#39;t want to create my own generator, just to see &quot;Hola&quot; &quot;Adios&quot; as the output of this program:<br><br><div style="margin-left:40px">
rule myecho <br>{<br>��� _MSG on $(&lt;) = $(MSG) ; <br>}<br>actions myecho bind _MSG<br>{<br>��� echo &quot;MSG = $(_MSG)&quot; ; <br>} <br><br>constant MSG : &quot;hola&quot; ; <br>make Hola : : @myecho ; <br><br>constant MSG : &quot;adios&quot; ; <br>
make Adios : : @myecho ;� <br></div><br></div>Why I only see &quot;adios&quot; &quot;adios&quot; ? I guess it&#39;s because the variable inside the action is not evaluated until the action executes. But the rule myecho should be executed in the first pass, hence _MSG should contain &quot;Hola&quot; for target Hola, and &quot;Adios&quot; for target Adios. <br>
<br>Am I missing anything? How can I pass a different message to a Make rule depending on the target? Can I avoid creating a generator?<br><br></div>Regards.<br></div>