make reduc211/makefile
doesn't run the named makefile; it looks for a Makefile using make
's lookup rules and tries to make the target reduc211/makefile
. What you want is something like
find -maxdepth 2 -name 'Makefile' -print -execdir make \;
This runs the make
command in every directory where a file named Makefile
is found.
If you have differently named makefiles, for example each is of the form Makefile.something
, you could try
find -maxdepth 2 -name 'Makefile.*' -print -execdir make -f \{}\ \;
to run make
using the specific Makefiles found by find
.