What's the difference between := and = in Makefile?

前端 未结 4 1543
既然无缘
既然无缘 2021-01-30 02:23

For variable assignment in Make, I see := and = operator. What\'s the difference between them?

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 02:41

    From http://www.gnu.org/software/make/manual/make.html#Flavors:

    = defines a recursively-expanded variable. := defines a simply-expanded variable.

提交回复
热议问题