Fixing stuff for production deployment
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
find . -mindepth 2 -maxdepth 2 -name 'Makefile' | while read -r makefile; do
|
||||
# Get the target from the first argument or use "all" as default
|
||||
TARGET=${1:-all}
|
||||
|
||||
find .. -mindepth 2 -maxdepth 2 -name 'Makefile' | while read -r makefile; do
|
||||
dir=$(dirname "$makefile")
|
||||
echo "Running 'make all' in $dir"
|
||||
echo "Running 'make $TARGET' in $dir"
|
||||
(
|
||||
cd "$dir" && make all
|
||||
cd "$dir" && make "$TARGET"
|
||||
)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: make all failed in $dir"
|
||||
echo "Error: make $TARGET failed in $dir"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user