## Building
> [!NOTE]
-> If building on Linux, [Raylib](https://github.com/raysan5/raylib) has been configured to use X11. If you don't have X11 installed, you can either install the necessary X11 packages or change the `CFGRAPHICS` [macro](https://github.com/raysan5/raylib/blob/282d6478baa51a509bf0a4b1d761a0bd7fd8bbf7/src/rglfw.c#L32) in `external/build.c` to use Wayland instead.
+> If building on Linux, [Raylib](https://github.com/raysan5/raylib/) has been configured to use X11. If you don't have X11 installed, you can either install the necessary X11 packages or change the `CFGRAPHICS` [macro](https://github.com/raysan5/raylib/blob/282d6478baa51a509bf0a4b1d761a0bd7fd8bbf7/src/rglfw.c#L32) in `external/build.c` to use Wayland instead.
This repository uses submodules, so you'll need to clone it recursively.
```console
-$ git clone --recursive https://github.com/trenthuber/simplexpm
-$ cd simplexpm
+> git clone --recursive https://github.com/trenthuber/simplexpm/
+> cd simplexpm/
```
-simplexpm uses [cbs](https://github.com/trenthuber/cbs) as its build system. cbs uses C source code as its build files, so the only thing you need to build this project is a C compiler. The first step is to bootstrap the build system by compiling the build file located at the root level of the repository.
+simplexpm uses [cbs](https://github.com/trenthuber/cbs/) as its build system. cbs uses C source code as its build files, so the only thing you need to build this project is a C compiler. The first step is to bootstrap the build system by compiling the build file located at the root level of the repository.
```console
-$ cc -o build build.c
+> cc -o build build.c
```
Running the `build` executable we just generated will build the entire project.
```console
-$ ./build
+> build
```
Once built, the application will be located in the `bin/` folder.
```console
-$ ./bin/simplexpm
+> bin/simplexpm
```
To clean the repository after building, just run the `clean` executable generated by the build system.
```console
-$ ./clean
+> clean
```
The `clean` executable doesn't remove the root `build` executable, so you can always rebuild the project without having to bootstrap again.
Finally, with an XPM file loaded, color modes can be changed by pressing corresponding keys (see a complete list of key bindings by using the `-h` flag).
```console
-$ ./bin/simplexpm -f assets/test.xpm
+> bin/simplexpm -f assets/test.xpm
```
