15 lines
197 B
Bash
Executable File
15 lines
197 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [$(which gmake) != 'gmake not found']; then
|
|
MAKE="gmake"
|
|
else
|
|
MAKE="make"
|
|
fi
|
|
|
|
for f in $(find $1 -maxdepth 1 -mindepth 1 -type d)
|
|
do
|
|
$MAKE -s -j -C "$f" $2
|
|
done
|