summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Rohloff <v10lator@myway.de>2025-06-24 14:20:34 +0200
committerThomas Rohloff <v10lator@myway.de>2025-06-24 14:20:34 +0200
commit545bbe55d5082d35ce2f9647e764fe9a4e60e87e (patch)
tree477ebf9cacb7ab096020e4f6377fe563915a4b95
parent909c881e07ed8bb834e7e779282eb869948de983 (diff)
Correctly tag code blocks for Linux build instructions
Signed-off-by: Thomas Rohloff <v10lator@myway.de>
-rw-r--r--docs/BUILDING.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/BUILDING.md b/docs/BUILDING.md
index 82dad4d89..77ab4cf7a 100644
--- a/docs/BUILDING.md
+++ b/docs/BUILDING.md
@@ -80,8 +80,10 @@ C:\Program Files\CMake\bin\cmake.exe --build build-cmake --target clean
## Linux
### Clone the repo and enter the directory
+```sh
git clone https://github.com/HarbourMasters/SpaghettiKart.git
cd SpaghettiKart
+```
### Manual
#### Install dependencies
@@ -122,7 +124,7 @@ zypper in clang libstdc++-devel git cmake ninja SDL2-devel libpng16-devel libzip
_Note: If you're using Visual Studio Code, the [CMake Tools plugin](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools) makes it very easy to just press run and debug._
-```bash
+```sh
# Clone the submodules
git submodule update --init
@@ -144,14 +146,18 @@ cmake --build build-cmake
### Docker
#### Create the docker container
+```sh
docker build . -t spaghetti
+```
#### Compile the project
+```sh
docker run --rm -v ${PWD}:/project spaghetti ./build.sh
+```
### Generate a distributable
After compiling the project you can generate a distributable by running of the following:
-```bash
+```sh
# Go to build folder
cd build-cmake
# Generate