Follow-up: the most likely cause of this error is that you are using a*csh shell variant. So:

1) If you are in fact using bash on Lion, and you got this error, it's anApple bug, report it to them.

2) Otherwise, if some sort of *csh is the default on Lion, that too is abug that you should report to Apple, since many Makefiles depend onbash-type syntax; but

3) If you have chosen to run a *csh variant yourself, you're on your own.Using csh is an (obsolete) "expert" option, and it may reasonably be assumed that if you run into this sort of problem you know how to fix it yourself.