Fixing stuff for production deployment

This commit is contained in:
plm
2025-02-24 10:00:06 +01:00
parent ab70717458
commit 1ef92e5975
35 changed files with 1566 additions and 7 deletions

View File

@@ -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