]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Makefile: avoid redundant script executions in d0_blind_id
authorbones_was_here <bones_was_here@xa.org.au>
Thu, 14 Apr 2022 11:17:29 +0000 (21:17 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Thu, 14 Apr 2022 11:49:34 +0000 (21:49 +1000)
Makefile

index 0b8b752147bd1fab4e0e4fb2b694a53bd8c6c2ec..c1d7a6dd2e389348f9d498e192438bb3cebb823c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,18 +75,20 @@ update-stable: nogit
 update-beta: nogit
        misc/tools/rsync-updater/update-to-autobuild.sh
 
-.PHONY: crypto
-crypto: nogit
+$(D0SRC)/Makefile:
        ( cd $(D0SRC) && ./autogen.sh && ./configure --enable-static --disable-shared )
+
+.PHONY: d0_blind_id
+d0_blind_id: nogit $(D0SRC)/Makefile
        $(MAKE) -C $(D0SRC)
 
 .PHONY: server
-server: crypto
+server: d0_blind_id
        $(MAKE) -C $(DPSRC) sv-release
        cp -v $(DPSRC)/darkplaces-dedicated $(SERVER)
 
 .PHONY: client
-client: crypto
+client: d0_blind_id
        $(MAKE) -C $(DPSRC) sdl-release
        cp -v $(DPSRC)/darkplaces-sdl $(CLIENT)