16 lines
352 B
Bash
16 lines
352 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
find . -mindepth 2 -maxdepth 2 -name 'Makefile' | while read -r makefile; do
|
||
|
dir=$(dirname "$makefile")
|
||
|
echo "Running 'make all' in $dir"
|
||
|
(
|
||
|
cd "$dir" && make all
|
||
|
)
|
||
|
if [ $? -ne 0 ]; then
|
||
|
echo "Error: make all failed in $dir"
|
||
|
exit 1
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
echo "All make processes completed successfully."
|