]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Only (re)generate the libd0 Makefile when necessary in dev/git builds
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 31 Dec 2023 12:41:25 +0000 (22:41 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 31 Dec 2023 12:43:50 +0000 (22:43 +1000)
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

index 3797bfd6933d6f5657c90b9a5cf5b87ca7b0cdd0..46c2b6dba12cbefca1742416dca3ae5e944c1895 100644 (file)
@@ -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