diff --git a/run.sh b/run.sh index f4ed24ab..6eb1c399 100755 --- a/run.sh +++ b/run.sh @@ -9,12 +9,13 @@ BIN=engine/build/$BUILD-$PLATFORM-$ARCH/q3rally.$ARCH if [ ! -f $BIN ]; then echo "Game binary '$BIN' not found, building it..." - make -C engine BUILD_GAME_SO=0 BUILD_SERVER=0 + make -C engine $BUILD BUILD_GAME_SO=0 BUILD_SERVER=0 fi # Create links to game logic qvms if [ ! -f baseq3r/vm/ui.qvm ]; then DIR=`pwd` + mkdir -p baseq3r/vm ln -st "$DIR/baseq3r/vm/" "$DIR/engine/build/$BUILD-$PLATFORM-$ARCH/baseq3r/vm/cgame.qvm" ln -st "$DIR/baseq3r/vm/" "$DIR/engine/build/$BUILD-$PLATFORM-$ARCH/baseq3r/vm/qagame.qvm" ln -st "$DIR/baseq3r/vm/" "$DIR/engine/build/$BUILD-$PLATFORM-$ARCH/baseq3r/vm/ui.qvm"