开发者

How do you perform an action over each file using make?

开发者 https://www.devze.com 2023-01-19 16:58 出处:网络
Let\'s say I have this: FILES = c:/file.c c:/another_file.c and I want to do something to each of the files. For example, I\'d like to apply cygpath to each of the files. How can I do that? I would

Let's say I have this:

FILES = c:/file.c c:/another_file.c

and I want to do something to each of the files. For example, I'd like to apply cygpath to each of the files. How can I do that? I would like a solution based on an external prog开发者_Python百科ram, instead of a built-in make function please.


Your question is unclear. If you mean you want to get at the cygpath'd path names, use something like:

CYG_FILES := $(shell cygpath $(FILES))
0

精彩评论

暂无评论...
验证码 换一张
取 消