From eb4b4c1f80c9dfbd9b367e0e42a12f0bd1b55f8c Mon Sep 17 00:00:00 2001 From: anth64 Date: Sun, 15 Mar 2026 18:01:46 +0100 Subject: [PATCH] fix(build): default PREFIX to /usr in gmake.mk --- CHANGELOG.md | 8 +++++++- README.md | 4 ++-- gmake.mk | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc6f1e1..a0c270c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [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 ### 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 - 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.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 diff --git a/README.md b/README.md index 1141243..5d71c03 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ build.bat debug release ./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 ./build.sh PREFIX=$HOME/.local install ``` @@ -234,7 +234,7 @@ stk_init(); ## Project Status -**Current Version:** 1.0.0-pre.10 +**Current Version:** 1.0.0-pre.11 ### What Works - Cross-platform module loading and hot-reloading diff --git a/gmake.mk b/gmake.mk index e33ce1f..f4df20a 100644 --- a/gmake.mk +++ b/gmake.mk @@ -22,7 +22,7 @@ endif RELEASE_LDFLAGS := -s CFLAGS_BASE := -Wall -Wpedantic -I$(INC_DIR) -std=c89 $(CFLAGS_PLAT) -PREFIX ?= /usr/local +PREFIX ?= /usr LIBDIR ?= $(PREFIX)/lib INCDIR ?= $(PREFIX)/include