fix(build): default PREFIX to /usr in gmake.mk

This commit is contained in:
2026-03-15 18:01:46 +01:00
parent 7b7916911c
commit eb4b4c1f80
3 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.0.0-pre.11] - 2026-03-15
### Fixed
- `gmake.mk`: `PREFIX` now defaults to `/usr` on Linux instead of `/usr/local`
## [1.0.0-pre.10] - 2026-03-14 ## [1.0.0-pre.10] - 2026-03-14
### Fixed ### Fixed
@@ -207,7 +212,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Dependency management and versioning not yet implemented - Dependency management and versioning not yet implemented
- API is unstable and subject to change in future releases - API is unstable and subject to change in future releases
[Unreleased]: https://github.com/anth64/stk/compare/v1.0.0-pre.10...HEAD [Unreleased]: https://github.com/anth64/stk/compare/v1.0.0-pre.11...HEAD
[1.0.0-pre.11]: https://github.com/anth64/stk/compare/v1.0.0-pre.10...v1.0.0-pre.11
[1.0.0-pre.10]: https://github.com/anth64/stk/compare/v1.0.0-pre.9...v1.0.0-pre.10 [1.0.0-pre.10]: https://github.com/anth64/stk/compare/v1.0.0-pre.9...v1.0.0-pre.10
[1.0.0-pre.9]: https://github.com/anth64/stk/compare/v1.0.0-pre.8...v1.0.0-pre.9 [1.0.0-pre.9]: https://github.com/anth64/stk/compare/v1.0.0-pre.8...v1.0.0-pre.9
[1.0.0-pre.8]: https://github.com/anth64/stk/compare/v1.0.0-pre.7...v1.0.0-pre.8 [1.0.0-pre.8]: https://github.com/anth64/stk/compare/v1.0.0-pre.7...v1.0.0-pre.8
+2 -2
View File
@@ -46,7 +46,7 @@ build.bat debug release
./build.sh install ./build.sh install
``` ```
Installs to `/usr/local` by default. Use `PREFIX` to customize: Installs to `/usr` on Linux, `/usr/local` on BSD/macOS by default. Use `PREFIX` to customize:
```bash ```bash
./build.sh PREFIX=$HOME/.local install ./build.sh PREFIX=$HOME/.local install
``` ```
@@ -234,7 +234,7 @@ stk_init();
## Project Status ## Project Status
**Current Version:** 1.0.0-pre.10 **Current Version:** 1.0.0-pre.11
### What Works ### What Works
- Cross-platform module loading and hot-reloading - Cross-platform module loading and hot-reloading
+1 -1
View File
@@ -22,7 +22,7 @@ endif
RELEASE_LDFLAGS := -s RELEASE_LDFLAGS := -s
CFLAGS_BASE := -Wall -Wpedantic -I$(INC_DIR) -std=c89 $(CFLAGS_PLAT) CFLAGS_BASE := -Wall -Wpedantic -I$(INC_DIR) -std=c89 $(CFLAGS_PLAT)
PREFIX ?= /usr/local PREFIX ?= /usr
LIBDIR ?= $(PREFIX)/lib LIBDIR ?= $(PREFIX)/lib
INCDIR ?= $(PREFIX)/include INCDIR ?= $(PREFIX)/include