操作系统:ubuntu10.04

Makefile里的subst
用法是$(subst FROM,TO,TEXT),即将TEXT中的东西从FROM变为TO

Makefile中的字符串处理函数
格式:
    $(subst ;,;,;)
名称:字符串替换函数——subst。
功能:把字串;中的;字符串替换成;。
返回:函数返回被替换过后的字符串。

示例:
$(subst a,the,There is a big tree),
把“There is a big tree”中的“a”替换成“the”,返回结果是“There is the big tree”。


参考文件:
1,http://baike.baidu.com/link?url=Wibqapwq_2NmeBkVyaIGAUKL7UT94Ad5XuMZQv5jI7zXI_7XWlXj_35adankhh4p

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2021-07-05
  • 2021-06-24
  • 2021-11-23
猜你喜欢
  • 2021-05-30
  • 2022-02-10
  • 2021-06-19
  • 2022-02-04
  • 2021-12-26
相关资源
相似解决方案