makefile之short函数

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

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

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

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

list := apple pear orange grape apple

all:
	@echo $(sort $(list))
posted @ 2018-09-17 07:37  suonikeyinsu  Views(294)  Comments(0Edit  收藏  举报