forked from ilya-zlobintsev/LACT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (21 loc) · 1.09 KB
/
Makefile
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
export CARGO_TARGET_DIR ?= ./target
DESTDIR ?= /
PREFIX ?= /usr/local
build-release:
cargo build -p lact --release
build-release-libadwaita:
cargo build -p lact --release --features=adw
build-release-headless:
cargo build -p lact --release --no-default-features --features=drm
install:
install -Dm755 target/release/lact $(DESTDIR)$(PREFIX)/bin/lact
install -Dm644 res/lactd.service $(DESTDIR)$(PREFIX)/lib/systemd/system/lactd.service
install -Dm644 res/io.github.lact-linux.desktop $(DESTDIR)$(PREFIX)/share/applications/io.github.lact-linux.desktop
install -Dm644 res/io.github.lact-linux.png $(DESTDIR)$(PREFIX)/share/pixmaps/io.github.lact-linux.png
install -Dm644 res/io.github.lact-linux.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/io.github.lact-linux.svg
uninstall:
rm $(DESTDIR)$(PREFIX)/bin/lact
rm $(DESTDIR)$(PREFIX)/lib/systemd/system/lactd.service
rm $(DESTDIR)$(PREFIX)/share/applications/io.github.lact-linux.desktop
rm $(DESTDIR)$(PREFIX)/share/pixmaps/io.github.lact-linux.png
rm $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/io.github.lact-linux.svg