From 9dda8bc6cf66f275384b06a5dc3eca315e82fd92 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sun, 31 Dec 2023 22:41:25 +1000 Subject: [PATCH] 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. --- misc/tools/all/xonotic.subr | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.2