:=$= 在 Makefile 中是什么意思?
What does :=$= means in Makefile?
在这个 Makefile 上:https://github.com/GrapheneOS/platform_frameworks_base/blob/11/Android.mk 我找到了
SDK_METADATA_DIR :=$= $(call intermediates-dir-for,PACKAGING,framework-doc-stubs-metadata,,COMMON)
:=$=
是什么意思?
我在这里什么也没找到:What's the difference between := and = in Makefile?提供的链接上也没有
摘自书 thegnumakebook,第 126 页,暮光之城:
It’s possible to take definitions like $( ) and $(\n) and go much
further, defining variables with names like =, # or :
我认为,=
只是一些其他变量。这里,$=
表示,扩展变量 =
.
而:=
用于简单赋值(只计算一次)。
在这个 Makefile 上:https://github.com/GrapheneOS/platform_frameworks_base/blob/11/Android.mk 我找到了
SDK_METADATA_DIR :=$= $(call intermediates-dir-for,PACKAGING,framework-doc-stubs-metadata,,COMMON)
:=$=
是什么意思?
我在这里什么也没找到:What's the difference between := and = in Makefile?提供的链接上也没有
摘自书 thegnumakebook,第 126 页,暮光之城:
It’s possible to take definitions like $( ) and $(\n) and go much further, defining variables with names like =, # or :
我认为,=
只是一些其他变量。这里,$=
表示,扩展变量 =
.
而:=
用于简单赋值(只计算一次)。