【发布时间】:2011-09-11 02:49:00
【问题描述】:
可能重复:
What is the difference between the GNU Makefile variable assignments =, ?=, := and +=?
我只知道非常基本的makefile 语法,并且正在阅读另一个项目的makefile 并遇到:= 进行宏声明。他们为什么要使用它?
也就是说,两者有什么区别
MYMACRO = hi i'm a macro
和
MYMACRO := hi i'm a macro
?
【问题讨论】:
-
所以问题的例子没有区别,但是如果 MYMACRO 使用另一个宏并且另一个宏的值可能会在处理 makefile 时发生变化。
-
@cnicutar
'info' is not recognized as an internal or external command, operable program or batch file.????
标签: makefile gnu-make colon-equals