Skip to content

Commit

Permalink
ci_build.sh: make sure our MAKE envvar is defined and not empty - in …
Browse files Browse the repository at this point in the history
…all cases [networkupstools/jenkins-dynamatrix#24]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Sep 21, 2023
1 parent 2f08b9b commit 692474b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,18 @@ if [ -z "${PKG_CONFIG-}" ]; then
PKG_CONFIG="pkg-config"
fi

# It seems sometimes we get blanks from CI
if [ -z "`echo "${MAKE-}" | tr -d ' '`" ] ; then
if (command -v gmake) >/dev/null 2>/dev/null ; then
# GNU make processes quiet mode better, which helps with this use-case
MAKE=gmake
else
# Use system default, there should be one
MAKE=make
fi
export MAKE
fi

# Would hold full path to the CONFIGURE_SCRIPT="${SCRIPTDIR}/${CONFIGURE_SCRIPT_FILENAME}"
CONFIGURE_SCRIPT=""
autogen_get_CONFIGURE_SCRIPT() {
Expand Down Expand Up @@ -726,16 +738,6 @@ fi
if [ "$1" = spellcheck -o "$1" = spellcheck-interactive ] && [ -z "$BUILD_TYPE" ] ; then
# Note: this is a little hack to reduce typing
# and scrolling in (docs) developer iterations.
if [ -z "${MAKE-}" ] ; then
if (command -v gmake) >/dev/null 2>/dev/null ; then
# GNU make processes quiet mode better, which helps with this use-case
MAKE=gmake
else
# Use system default, there should be one
MAKE=make
fi
export MAKE
fi
case "$CI_OS_NAME" in
windows-msys2)
# https://github.com/msys2/MSYS2-packages/issues/2088
Expand Down

0 comments on commit 692474b

Please sign in to comment.