From: bones_was_here <bones_was_here@xa.org.au>
Date: Thu, 14 Apr 2022 11:17:29 +0000 (+1000)
Subject: Makefile: avoid redundant script executions in d0_blind_id
X-Git-Tag: xonotic-v0.8.5~9
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0f0844c144c5f51e2a6301e776fbcd167667dd0e;p=xonotic%2Fxonotic.git

Makefile: avoid redundant script executions in d0_blind_id
---

diff --git a/Makefile b/Makefile
index 0b8b7521..c1d7a6dd 100644
--- 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)