mmake uses $MAKE if available

This commit is contained in:
Jōshin 2023-12-26 10:27:04 -05:00
parent 4c6f928fbf
commit fd772b9b2a
No known key found for this signature in database

View file

@ -38,8 +38,7 @@ done
whence nproc >/dev/null || autoload -Uz nproc
j=-j$(nproc)
}
local make
[[ -x /opt/cosmocc/bin/make ]] && make=/opt/cosmocc/bin/make
local make=${MAKE:-$(echo /opt/cosmocc/bin/make(X) 2>/dev/null)}
[[ -z $make ]] && make=build/bootstrap/make.com
( set -x
exec $make $j $flags MODE=$mode $targs )