support CARGO_TARGET_DIR
This commit is contained in:
parent
b4561cfc71
commit
577a181122
1 changed files with 2 additions and 1 deletions
3
Justfile
3
Justfile
|
|
@ -4,6 +4,7 @@ prefix := rootdir + '/usr'
|
||||||
clean := '0'
|
clean := '0'
|
||||||
debug := '0'
|
debug := '0'
|
||||||
vendor := '0'
|
vendor := '0'
|
||||||
|
cargo-target-dir := env('CARGO_TARGET_DIR', 'target')
|
||||||
target := if debug == '1' { 'debug' } else { 'release' }
|
target := if debug == '1' { 'debug' } else { 'release' }
|
||||||
vendor_args := if vendor == '1' { '--frozen --offline' } else { '' }
|
vendor_args := if vendor == '1' { '--frozen --offline' } else { '' }
|
||||||
debug_args := if debug == '1' { '' } else { '--release' }
|
debug_args := if debug == '1' { '' } else { '--release' }
|
||||||
|
|
@ -23,7 +24,7 @@ build:
|
||||||
# Installs files into the system
|
# Installs files into the system
|
||||||
install:
|
install:
|
||||||
# main binary
|
# 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
|
# session start script
|
||||||
install -Dm0755 data/start-cosmic {{bindir}}/start-cosmic
|
install -Dm0755 data/start-cosmic {{bindir}}/start-cosmic
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue