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
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
$
$make
Makefile:4: var1=-X-
Makefile:5: var2=-X -
make: Nothing to be done for `all'.

Note that var2 is assigned a value including a trailing space.

        Sam


_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to