2019-02-27 19:49:39 +01:00
|
|
|
termux_step_make() {
|
2019-08-14 19:29:58 +02:00
|
|
|
[ "$TERMUX_PKG_METAPACKAGE" = "true" ] && return
|
|
|
|
|
2019-02-27 19:49:39 +01:00
|
|
|
local QUIET_BUILD=
|
2019-08-13 00:39:35 +02:00
|
|
|
if [ "$TERMUX_QUIET_BUILD" = true ]; then
|
2019-02-27 19:49:39 +01:00
|
|
|
QUIET_BUILD="-s"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -f build.ninja; then
|
|
|
|
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES
|
2022-03-09 07:40:01 +01:00
|
|
|
elif ls ./*akefile &> /dev/null || [ ! -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then
|
2019-02-27 19:49:39 +01:00
|
|
|
if [ -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then
|
|
|
|
make -j $TERMUX_MAKE_PROCESSES $QUIET_BUILD
|
|
|
|
else
|
|
|
|
make -j $TERMUX_MAKE_PROCESSES $QUIET_BUILD ${TERMUX_PKG_EXTRA_MAKE_ARGS}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|