开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜