程式語言
- GNU -
Makefile =、:=、?=、+=
參考資訊:
http://dannysun-unknown.blogspot.com/2015/03/makefile.html?m=1
符號
說明
範例
結果
=
最後給值
x=100
y=$(x)
x=200
x=200, y=200
:=
當下給值
x:=100
y:=$(x)
x=:200
x=200, y=100
?=
變數爲空時給值
x?=100
x=100
+=
附加
x=100
x+=200
x=100 200