Allow a suffix (e.g. the version) to be added when installing (#1406)

This commit is contained in:
Sylvie
2024-06-18 16:06:43 -04:00
committed by GitHub
parent ee748cfe26
commit 0433714d77
3 changed files with 24 additions and 1 deletions

View File

@@ -40,6 +40,22 @@ cmake --build build
cmake --install build
```
Two parameters available when building are a prefix (e.g. to put the executables in a directory)
and a suffix (e.g. to append the version number or commit ID).
```sh
make
sudo make install PREFIX=install_dir/ SUFFIX=-$(git rev-parse --short HEAD)
```
```sh
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DSUFFIX=-$(git rev-parse --short HEAD)
cmake --build build
cmake --install build --prefix install_dir
```
(If you set a `SUFFIX`, it should include the `.exe` extension on Windows.)
## 2. RGBDS Folder Organization
The RGBDS source code file structure is as follows: