From: bones_was_here Date: Sun, 31 Dec 2023 12:41:25 +0000 (+1000) Subject: Only (re)generate the libd0 Makefile when necessary in dev/git builds X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9dda8bc6cf66f275384b06a5dc3eca315e82fd92;p=xonotic%2Fxonotic.git Only (re)generate the libd0 Makefile when necessary in dev/git builds Also fixes the `distclean` case: that target deletes the Makefile so we need to generate it again before we can build. --- diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 3797bfd6..46c2b6db 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -178,10 +178,14 @@ case "$cmd" in compiled0=true fi if $compiled0; then - verbose sh autogen.sh - verbose ./configure + if ! [ -f Makefile ]; then + verbose sh autogen.sh + verbose ./configure + fi if $cleand0; then verbose $MAKE $MAKEFLAGS distclean + verbose sh autogen.sh + verbose ./configure fi verbose $MAKE $MAKEFLAGS fi