]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
allow using gmqcc using USE_GMQCC=yes ./all compile
authorRudolf Polzer <divverent@xonotic.org>
Tue, 18 Dec 2012 19:11:01 +0000 (20:11 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 18 Dec 2012 19:11:01 +0000 (20:11 +0100)
misc/tools/all/xonotic.subr

index 00bdea5c9588011a75408cc1f96f56b1e3071fb3..4d168ad1cff805cd33f58b52949ddb8c37aabeae 100644 (file)
@@ -202,19 +202,33 @@ case "$cmd" in
                        verbose make $MAKEFLAGS
                fi
 
-               verbose cd "$d0/fteqcc"
-               if $cleanqcc; then
-                       verbose make $MAKEFLAGS clean
-               fi
-               verbose make $MAKEFLAGS
+               if [ x"$USE_GMQCC" = x"yes" ]; then
+                       verbose cd "$d0/gmqcc"
+                       if $cleanqcc; then
+                               verbose make $MAKEFLAGS clean
+                       fi
+                       verbose make $MAKEFLAGS
+
+                       verbose cd "$d0/data/xonotic-data.pk3dir"
+                       if $cleanqc; then
+                               verbose make QCC="../../../../gmqcc/qmqcc" "$@" $MAKEFLAGS clean
+                       fi
+                       verbose make QCC="../../../../gmqcc/gmqcc" "$@" $MAKEFLAGS
+               else
+                       verbose cd "$d0/fteqcc"
+                       if $cleanqcc; then
+                               verbose make $MAKEFLAGS clean
+                       fi
+                       verbose make $MAKEFLAGS
 
-               verbose cd "$d0/data/xonotic-data.pk3dir"
-               if $cleanqc; then
-                       verbose make QCC="../../../../fteqcc/fteqcc.bin" FTEQCC="../../../../fteqcc/fteqcc.bin" "$@" $MAKEFLAGS clean
-                       #verbose make QCC="../../../../fteqcc/fteqcc.bin" "$@" $MAKEFLAGS clean
+                       verbose cd "$d0/data/xonotic-data.pk3dir"
+                       if $cleanqc; then
+                               verbose make QCC="../../../../fteqcc/fteqcc.bin" FTEQCC="../../../../fteqcc/fteqcc.bin" "$@" $MAKEFLAGS clean
+                               #verbose make QCC="../../../../fteqcc/fteqcc.bin" "$@" $MAKEFLAGS clean
+                       fi
+                       verbose make QCC="../../../../fteqcc/fteqcc.bin" FTEQCC="../../../../fteqcc/fteqcc.bin" "$@" $MAKEFLAGS
+                       #verbose make QCC="../../../../fteqcc/fteqcc.bin" "$@" $MAKEFLAGS
                fi
-               verbose make QCC="../../../../fteqcc/fteqcc.bin" FTEQCC="../../../../fteqcc/fteqcc.bin" "$@" $MAKEFLAGS
-               #verbose make QCC="../../../../fteqcc/fteqcc.bin" "$@" $MAKEFLAGS
                # 4 levels up: data, xonotic-data, qcsrc, server
 
                verbose cd "$d0/darkplaces"