Simplify run-make script
This commit is contained in:
parent
e45db79a77
commit
ce9bbb7558
@ -2,13 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
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)
|
for f in $(find $1 -maxdepth 1 -mindepth 1 -type d)
|
||||||
do
|
do
|
||||||
$MAKE -s -j -C "$f" $2
|
cmake --build "$f" --target $2 -- -j
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user