Hi,
I'm rather new to GNUmake 3.81 (three months or so).
I need to get a list of all files from multiple directories and I'm
not sure how to accomplish my task.
Using a bash shell, I would type: find ../../../. -name "*.mak". As
expected, the find command prints each file matching the pattern
to standard out.
I've tried the following in a make file.
files = $(foreach f,../../..,$(wildcard $f/*.mak))
all:
@ $(foreach f,$(files),echo $f;)
The all target displays only the *.mak files in the top directory.
I need to recurse all directories. Is there a simple way to accomplish
this with make?
Thank you.
Gary Howard
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make