答:这是个模式替换函数,格式为:
$(patsubst <pattern>,<replacement>,<text>)
查找text中的单词,如果匹配pattern,那么就用replacement的内容替换
举例:
$(patsubst %.c,%.o,jello1.c jello2.c)
那么将会替换成jello1.o jello2.o
makefile中的patsubst函数有何作用?
原文:https://www.cnblogs.com/dakewei/p/10758152.html