mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(tools): various Makefile improvements
- sync output recursively for make calls - add a script to get the number of cpus on mac and linux - Makefile formatting - update serialize_targets.sh to invoke the proper make binary - Add instructions to install make
This commit is contained in:
7
script/make_utils/ncpus.sh
Executable file
7
script/make_utils/ncpus.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ `uname` == "Darwin" ]]; then
|
||||
sysctl -n hw.logicalcpu
|
||||
else
|
||||
nproc
|
||||
fi
|
||||
@@ -4,8 +4,12 @@ set +e
|
||||
|
||||
EXIT_CODE=0
|
||||
|
||||
# Get the make executable
|
||||
MAKE="$1"
|
||||
shift
|
||||
|
||||
for make_target in "$@"; do
|
||||
make --no-print-directory "${make_target}"
|
||||
"${MAKE}" --no-print-directory "${make_target}"
|
||||
if [[ "$?" != "0" ]]; then
|
||||
EXIT_CODE=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user