1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
prog := termusic
default: fmt
fmt:
cargo fmt --all
cargo check
cargo clippy
run:
cargo run
release:
cargo build --release
m:
cargo build --features mpris --release
c:
cargo build --features cover --release
f:
cargo build --features mpris,cover,yt-dlp --release
mpris: m post
cover: c post
full: f post
post:
mkdir -p ~/.local/share/cargo/bin/
cp -f target/release/$(prog) ~/.local/share/cargo/bin/
mkdir -p ~/.config/termusic/themes
cp -nr themes/* ~/.config/termusic/themes/
install: release post