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))
精彩评论