美文网首页
makefile之short函数

makefile之short函数

作者: frank_545b | 来源:发表于2018-09-17 15:56 被阅读0次

函数名称:排序函数-$(sort LIST)

函数功能:给字串"LIST"中的单词以首字母为准进行排序(升序),并去掉重复的单词。

返回值:空格分割的没有重复单词的字串。

函数说明:两个功能,排序和去字串中的重复单词。可以单独使用其中一个功能。

list := apple pear orange grape apple

all:
    @echo $(sort $(list))

相关文章

网友评论

      本文标题:makefile之short函数

      本文链接:https://www.haomeiwen.com/subject/zjfrnftx.html