From b5ab6c2468b41ccc3bd445960c27473dbccc0c57 Mon Sep 17 00:00:00 2001
From: Rudolf Polzer <divverent@xonotic.org>
Date: Thu, 21 Mar 2013 17:22:32 +0100
Subject: [PATCH] Fix for ./all compile -r dedicated, thanks, ItsMe, fixes
 #1406

---
 misc/tools/all/xonotic.subr | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr
index bbc86c3d..405c0ff4 100644
--- a/misc/tools/all/xonotic.subr
+++ b/misc/tools/all/xonotic.subr
@@ -86,19 +86,19 @@ case "$cmd" in
 			for X in $1; do
 				case "$X" in
 					sdl)
-						TARGETS="$TARGETS sdl-debug"
+						TARGETS="$TARGETS sdl-$debug"
 						;;
 					agl)
-						TARGETS="$TARGETS cl-debug"
+						TARGETS="$TARGETS cl-$debug"
 						if $snowleopardhack; then
 							export CC="$CC -arch i386"
 						fi
 						;;
 					glx|wgl)
-						TARGETS="$TARGETS cl-debug"
+						TARGETS="$TARGETS cl-$debug"
 						;;
 					dedicated)
-						TARGETS="$TARGETS sv-debug"
+						TARGETS="$TARGETS sv-$debug"
 						;;
 					*)
 						BAD_TARGETS="$BAD_TARGETS $X"
-- 
2.39.5