I have a bunch of directories. I want to build an object for each directory. Suppose OBJS contains "build/dir1 build/dir2 build/dir3", and the pattern I'm matching is
build/%: %
<do something here>
I'd like to add, for each object, dependencies for every file within that directory (recursively). I thought of doing something like
build/%: $(shell find %)
<do something here>
But it seems like the second '%' is not expanded. How can I get this working?
(Weird thing that I noticed is that the '%' in '$(shell echo %)' is expanded.)
Thanks.