makefile之short函数

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

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

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

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

list := apple pear orange grape apple

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

猜你喜欢

转载自www.cnblogs.com/black-mamba/p/9660236.html