[embeded]Makefile中patsubst和subst

2016-4-20 写技术

1.他们都是执行替换
2.patsubst可以用通配符进行正则替换

For example:
$(patsubst %.c, %.o, "aaa.c bbb.c ddd.c.c.c eee.co")
out: aaa.o bbb.o ddd.c.c.o eee.co

$(subst %.c, %.o, "aaa.c bbb.c ddd.c.c.c eee.co")
out: aaa.o bbb.o ddd.o.o.o eee.oo

标签: embedded

发表评论:

Powered by anycle 湘ICP备15001973号-1