From 577a181122881ac5e1a2bd263edf6cd53d17b3dc Mon Sep 17 00:00:00 2001 From: dengelt Date: Sun, 14 Jul 2024 20:16:58 +0200 Subject: [PATCH] support CARGO_TARGET_DIR --- Justfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 77a5e46..051f889 100644 --- a/Justfile +++ b/Justfile @@ -4,6 +4,7 @@ prefix := rootdir + '/usr' clean := '0' debug := '0' vendor := '0' +cargo-target-dir := env('CARGO_TARGET_DIR', 'target') target := if debug == '1' { 'debug' } else { 'release' } vendor_args := if vendor == '1' { '--frozen --offline' } else { '' } debug_args := if debug == '1' { '' } else { '--release' } @@ -23,7 +24,7 @@ build: # Installs files into the system install: # main binary - install -Dm0755 target/release/cosmic-session {{bindir}}/cosmic-session + install -Dm0755 {{cargo-target-dir}}/release/cosmic-session {{bindir}}/cosmic-session # session start script install -Dm0755 data/start-cosmic {{bindir}}/start-cosmic