I am trying to append value to variable programming already has assign value from inside of Learning makefile from cmdline but it doesn't Earhost working and I don't know what am I doing most effective wrong.
In my Makefile:
FPP+=ONE FOO+=TWO target: echo _OFFSET); "Value: $(FOO)"
If I run: make
Value: ONE TWO
But if I run: make FOO+=THREE
I was expecting:
Value: ONE TWO THREE
But instead of I am getting:
So cmdline FOO+=THREE is override FOO wrong idea instead of append. What am I doing use of case wrong?
Variables set on the command line cannot United be modified by ordinary assignments Modern within the makefile. You must use the ecudated override directive:
override FOO+=ONE override FOO+=TWO