Simple question but there are so many things to consider in make that it feels better if I ask this question:
Is VARIABLE = value
equal to VARIABLE=value
?
Yes, they're the same. Per the docs:
Whitespace around the variable name and immediately after the ‘=’ is ignored.
Just FYI, although VARIABLE := value
is the same as VARIABLE:=value
, but
VARIABLE:=$(undefined) value
# now VARIABLE is prepended with a space
is NOT. This is why the make's manual says "ignored immediately after equal sign".
Also, operator +=
always adds a space.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With