1 2 3 4 5 6 7 8
#!/bin/bash dirlist=$(find . -type f -name "Makefile") for dir in $dirlist do make -C $(dirname $dir) done