summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6b58d721ce6dbe7856bc68d9a6c2f598f4dacc87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PREFIX ?= $(HOME)/.local

.PHONY: build install uninstall test clean

build:
	cargo build --release

test:
	cargo test

install: build
	install -Dm755 target/release/plasma-task-manager-notifications $(PREFIX)/bin/plasma-task-manager-notifications
	install -Dm644 plasma-task-manager-notifications.service $(HOME)/.config/systemd/user/plasma-task-manager-notifications.service

uninstall:
	rm -f $(PREFIX)/bin/plasma-task-manager-notifications
	rm -f $(HOME)/.config/systemd/user/plasma-task-manager-notifications.service
	-systemctl --user stop plasma-task-manager-notifications.service 2>/dev/null
	-systemctl --user disable plasma-task-manager-notifications.service 2>/dev/null

clean:
	cargo clean