As the title, in makefile GNU, what is the diff between obj_$(variable) and $(addprefix “obj_”, $(variable)). I am sure there is the difference, because the first one can be compared to a string, and the latter one cannot be recognized as a string. Please let me know if I am wrong. I want to make the second one work as a string, so I can use $($(addprefix “obj_”, $(variable))) as a variable (now it doesn’t work).
Thank you guys.
Test it by yourself:
You will get the following output:
P.S. As I told you in the answer to another your question, quotes are definitely not what you want.
Use plain
obj_:Instead of: