Geo
Geo

Reputation: 96947

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 program, instead of a built-in make function please.

Upvotes: 0

Views: 138

Answers (1)

Jack Kelly
Jack Kelly

Reputation: 18667

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))

Upvotes: 3

Related Questions