oc-k8s/build_opencloud_microservices.sh

16 lines
352 B
Bash
Raw Normal View History

2025-01-22 14:21:31 +01:00
#!/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."