Here is a simplified makefile:
all: @for (( i = 0; i < 5; ++i )); do \ var="$$var $$i"; \ echo $$var; \ done @echo $$var
I suppose the value of "var" is "0 1 2 3 4", but the output is:
0 0 1 0 1 2 0 1 2 3 0 1 2 3 4 <--- NOTHING!!!
As you can see, the last echo is NOTHING. What's wrong?
source share