Files

24 lines
667 B
Diff
Raw Permalink Normal View History

2025-11-17 14:22:32 +09:00
--- Makefile 2025-11-04 17:58:08
+++ Makefile.new 2025-11-17 13:40:45
@@ -1,9 +1,9 @@
2024-12-27 02:40:30 +09:00
OS = $(shell uname -s)
-KRUNKIT_RELEASE = target/release/krunkit
-KRUNKIT_DEBUG = target/debug/krunkit
+KRUNKIT_RELEASE = target/$(CARGO_BUILD_TARGET)/release/krunkit
+KRUNKIT_DEBUG = target/$(CARGO_BUILD_TARGET)/debug/krunkit
ifeq ($(PREFIX),)
- PREFIX := /usr/local
+ PREFIX := @@DEFAULT_PREFIX@@
endif
2025-11-17 14:22:32 +09:00
.PHONY: install clean $(KRUNKIT_RELEASE) $(KRUNKIT_DEBUG)
@@ -15,6 +15,7 @@
2024-12-27 02:40:30 +09:00
$(KRUNKIT_RELEASE):
cargo build --release
ifeq ($(OS),Darwin)
+ install_name_tool -add_rpath $(PREFIX)/lib $@
codesign --entitlements krunkit.entitlements --force -s - $@
endif