Lets say, I want to do something like this in my makefile.
myVar="Value1"
define compare_with_expect_file
cat $(filePath1) | diff -c ${filePath2} || myVar+=$(myVar)
echo $(myVar) // want it to be changed
endef
but this part does not work:
myVar+=$(myVar)
I am not able to change value of a variable that is placed after ||
How can I make it work?