From 3277435ff908cb7e48d9b54870c74d8d1bb0365a Mon Sep 17 00:00:00 2001 From: dengelt Date: Sun, 14 Jul 2024 19:06:39 +0200 Subject: [PATCH] support CARGO_TARGET_DIR --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e23ac438..00a4713f 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ libdir = $(prefix)/lib sharedir = $(prefix)/share BINARY = cosmic-comp +CARGO_TARGET_DIR ?= target TARGET = debug DEBUG ?= 0 @@ -46,7 +47,7 @@ ifeq ($(VENDOR),1) endif install: - install -Dm0755 "target/$(TARGET)/$(BINARY)" "$(TARGET_BIN)" + install -Dm0755 "$(CARGO_TARGET_DIR)/$(TARGET)/$(BINARY)" "$(TARGET_BIN)" install -Dm0644 "data/keybindings.ron" "$(KEYBINDINGS_CONF)" install-bare-session: install