Browse Source

build-package: mv termux_step_make to scripts/build/

android-5
Henrik Grimler 6 years ago
committed by Leonid Plyushch
parent
commit
00d6e0c282
  1. 18
      build-package.sh
  2. 16
      scripts/build/termux_step_make.sh

18
build-package.sh

@ -91,22 +91,8 @@ termux_step_post_configure() {
return
}
termux_step_make() {
local QUIET_BUILD=
if [ $TERMUX_QUIET_BUILD = true ]; then
QUIET_BUILD="-s"
fi
if test -f build.ninja; then
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES
elif ls ./*akefile &> /dev/null || [ ! -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then
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
}
# Make package, either with ninja or make
source scripts/build/termux_step_make.sh
termux_step_make_install() {
if test -f build.ninja; then

16
scripts/build/termux_step_make.sh

@ -0,0 +1,16 @@
termux_step_make() {
local QUIET_BUILD=
if [ $TERMUX_QUIET_BUILD = true ]; then
QUIET_BUILD="-s"
fi
if test -f build.ninja; then
ninja -w dupbuild=warn -j $TERMUX_MAKE_PROCESSES
elif ls ./*akefile &> /dev/null || [ ! -z "$TERMUX_PKG_EXTRA_MAKE_ARGS" ]; then
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
}
Loading…
Cancel
Save