Possible Duplicate:
What is the difference between the GNU Makefile variable assignments =, ?=, := and +=?
I only know very basic makefile
syntax, and was reading through another project's makefile
and came across :=
for macro declaration. Why would they use that?
In other words, is there any difference between
MYMACRO = hi i'm a macro
and
MYMACRO := hi i'm a macro
?
Variables defined with :=
in GNU make are expanded when they are defined rather than when they are used.
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