fix: install depends on release instead of manual pre-build

clean+install in one invocation (make or build.sh/build.bat) wiped the
release build between the pre-build and the install check. install now
has a real release prerequisite so make's own dependency graph handles
rebuilds correctly regardless of target order.
This commit is contained in:
anth64 committed 2026-11-14 15:41:11 +01:00
1 parent f1b9383d52
commit b094b385d5
6 files changed
+4 -20

No files matched your search

+1 -2
View File
@@ -99,8 +99,7 @@ test: debug
@$(MAKE) -C test -f gmake.mk
ifneq ($(OS),Windows_NT)
install:
@test -f $(BIN_DIR)/release/$(FULL_LIB) || { echo "Run 'make -f gmake.mk release' before installing."; exit 1; }
install: release
install -d $(LIBDIR) $(INCDIR)/stk
install -m 755 $(BIN_DIR)/release/$(FULL_LIB) $(LIBDIR)/
install -m 644 $(BIN_DIR)/release/$(STATIC_LIB) $(LIBDIR)/