2024-11-22 18:25:23 +09:00

24 lines
324 B
Bash
Executable File

#!/bin/bash
START_DIR=$PWD
for dir in ./*/
do
# Remove the trailing "/"
dir=${dir%*/}
# Check if there is a Makefile in this directory
if [ -f ${dir}/Makefile ]; then
echo " "
echo " -------> Build '${dir##*/}'"
cd "$dir" ; make
# Copy binary
cp build/*.bin ../../binaries/
cd ..
fi
done
echo "Done."