From 022da22429cb6df5ba493050179edae0a8ff469e Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 17 Jul 2016 19:23:38 +0100 Subject: [PATCH] possiblity to compile the project using BSD with GNUmake modified: misc/tools/all/xonotic.subr --- misc/tools/all/git.subr | 4 ---- misc/tools/all/xonotic.subr | 20 ++++++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/misc/tools/all/git.subr b/misc/tools/all/git.subr index b14a8b6f..33054119 100644 --- a/misc/tools/all/git.subr +++ b/misc/tools/all/git.subr @@ -19,10 +19,6 @@ initrepo() base= pushbase= allrepos initrepo_ "`git config remote.origin.url`" "`git config remote.origin.pushurl`" - if [ -z "$base" ]; then - msg "The main repo is not xonotic.git, what have you done?" - exit 1 - fi msg "Found main repo = $base" if [ -n "$pushbase" ]; then msg "Found push repo = $pushbase" diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index e1462c8b..317946aa 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -119,6 +119,10 @@ case "$cmd" in fi fi + if [ -z "$MAKE" ]; then + MAKE=make + fi + if [ -z "$MAKEFLAGS" ]; then ncpus=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null || echo 1` if [ $ncpus -gt 1 ]; then @@ -229,30 +233,30 @@ case "$cmd" in if $compiled0; then if $cleand0; then if [ -f Makefile ]; then - verbose make $MAKEFLAGS distclean + verbose $MAKE $MAKEFLAGS distclean fi fi if ! [ -f Makefile ]; then verbose sh autogen.sh verbose ./configure fi - verbose make $MAKEFLAGS + verbose $MAKE $MAKEFLAGS fi verbose cd "$d0/gmqcc" if $cleanqcc; then - verbose make $MAKEFLAGS clean + verbose $MAKE $MAKEFLAGS clean fi if [ -n "$WE_HATE_OUR_USERS" ]; then - verbose make $MAKEFLAGS gmqcc.exe + verbose $MAKE $MAKEFLAGS gmqcc.exe else - verbose make $MAKEFLAGS gmqcc + verbose $MAKE $MAKEFLAGS gmqcc fi if [ -n "$MSYSTEM" ]; then DATAMAKE=mingw32-make else - DATAMAKE=make + DATAMAKE=$MAKE fi verbose cd "$d0/data/xonotic-data.pk3dir" if $cleanqc; then @@ -266,10 +270,10 @@ case "$cmd" in $ECHO "Warning: invalid empty client, default clients will be used." fi if $cleandp; then - verbose make $MAKEFLAGS clean + verbose $MAKE $MAKEFLAGS clean fi for T in $TARGETS; do - verbose make $MAKEFLAGS STRIP=: "$@" "$T" + verbose $MAKE $MAKEFLAGS STRIP=: "$@" "$T" done for T in $BAD_TARGETS; do $ECHO "Warning: discarded invalid client $T." -- 2.39.2