libcosmic/examples/design-demo/justfile
2023-09-14 01:38:56 +02:00

26 lines
No EOL
808 B
Makefile
Executable file

!include ../just/rust.just
!include ../just/packaging.just
rootdir := ''
prefix := '/usr'
# Name of the application's binary
bin-name := 'cosmic-design-demo'
# The AppID of the application
app-id := 'com.system76.CosmicDesignDemo'
# Application binary executable source and install destination
bin-src := 'target' / 'release' / bin-name
bin-dst := clean(rootdir / prefix) / 'bin' / bin-name
# Desktop file source and install destination
desktop-file := app-id + '.desktop'
desktop-src := 'examples' / 'design-demo' / 'resources' / desktop-file
desktop-dst := clean(rootdir / prefix) / 'share' / 'applications' / desktop-file
# Recipe for compiling the application
build *args:
cargo build -p cosmic-design-demo {{args}}
install: (install-bin bin-src bin-dst) (install-file desktop-src desktop-dst)