Skip to content

Commit 2beff31

Browse files
dengeltjackpot51
authored andcommitted
support CARGO_TARGET_DIR
1 parent 2c3a2fc commit 2beff31

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

justfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ base-dir := absolute_path(clean(rootdir / prefix))
88

99
export INSTALL_DIR := base-dir / 'share'
1010

11-
bin-src := 'target' / 'release' / name
11+
cargo-target-dir := env('CARGO_TARGET_DIR', 'target')
12+
bin-src := cargo-target-dir / 'release' / name
1213
bin-dst := base-dir / 'bin' / name
1314

1415
# Use mold linker if clang and mold exists.
@@ -57,11 +58,11 @@ check-json: (check '--message-format=json')
5758

5859
# Runs after compiling a release build
5960
run: build-release
60-
./target/release/cosmic-launcher
61+
{{bin-src}}
6162

6263
# Build and run with tokio-console enabled
6364
tokio-console: (build-release '--features console')
64-
env TOKIO_CONSOLE=1 ./target/release/cosmic-launcher
65+
env TOKIO_CONSOLE=1 {{bin-src}}
6566

6667
# Installs files
6768
install:

0 commit comments

Comments
 (0)