On Wed, Jul 30, 2003 at 04:36:20PM -0400, Paul D. Smith wrote:
> %% Sam Ravnborg <[EMAIL PROTECTED]> writes:
>
> sr> When a variable is followed by a comment the variable is assigned
> sr> a value containing a space.
>
> Yes. This is documented in the manual and is exactly how all versions
>
On Wed, 30 Jul 2003, Sam Ravnborg wrote:
> When a variable is followed by a comment the variable is assigned a value
> containing a space.
It's a relief to know that GNU make works the way it's documented to
work. ;-) See make.info-4, search for "remember not to put a random
comment on the end of
%% Sam Ravnborg <[EMAIL PROTECTED]> writes:
sr> When a variable is followed by a comment the variable is assigned
sr> a value containing a space.
Yes. This is documented in the manual and is exactly how all versions
of make behave.
In fact, you don't even need a comment: any trailing whites
When a variable is followed by a comment the variable is assigned a value
containing a space.
Sample Makefile:
--
var1 := X
var2 := X # Comment
$(warning var1=-$(var1)-)
$(warning var2=-$(var2)-)
all:
--
Output:
$make -v
GNU Make 3.80
Copyri