曲径通幽论坛

标题: sort -- 排序函数 [打印本页]

作者: beyes    时间: 2010-12-9 18:46
标题: sort -- 排序函数
使用方法:
$(sort <list>)
说明:
该函数的作用是对 <list> 中的字符串进行排序,按照升序排序。另外,如果字<list> 中含有相同的字符串,在返回的排序结果中只会包含一个。用法如:
objs = hello.c world.c are.c you.c ok.c

all:
        @echo $(sort $(objs))
运行输出:
# make
are.c hello.c ok.c world.c you.c





欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) Powered by Discuz! X3.2