Re: Incorrect += handling?

2005-04-01 Thread Paul D. Smith
%% Noel Yap <[EMAIL PROTECTED]> writes: ny> Well, at least it's consistent with: ny> FOO := foo ny> FOO += ny> all: ; @echo '"$(FOO)"' Sure. I wasn't clear: I just put the comment in my example to show that the variable value was empty. I'm talking about ALL instances of += adding empty

Re: Incorrect += handling?

2005-04-01 Thread Noel Yap
Well, at least it's consistent with: FOO := foo FOO += all: ; @echo '"$(FOO)"' Having said that, I suppose it would it would be nice for it not to add the space for situations like: FOO := foo FOO += $(BAR) in which BAR isn't defined. Noel [EMAIL PROTECTED] wrote: I just realized this, which I thi

Incorrect += handling?

2005-04-01 Thread psmith
I just realized this, which I think might be a bug: FOO := foo FOO +=#nothing here all: ; @echo '"$(FOO)"' This prints: $ make "foo " with a space, not: "foo" which is what I'd expect. Seems like the += adds the space character even if the value being added is empty. That doesn'