On Mon, 2008-12-01 at 22:52 +0530, kalyan wrote: > I expected the output on my console to be 0 but i got 1 ? > Any hints on what might be going wrong here are appreciated.
There's nothing wrong :-). Make evaluates left-to-right and completely expands each variable or function it finds in the string before moving on to the next. So, the first thing it needs to expand is $(eval $(change_value)) and that sets VAR to 1. Then it sees $(VAR) and expands that, which results in "1". _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
