diff options
| author | Asko Nõmm <asko@nmm.ee> | 2026-04-29 20:45:04 +0300 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2026-04-29 20:45:04 +0300 |
| commit | a6b024ffbc0052813d5cfd05fa2cd207d5b20c9b (patch) | |
| tree | f0c9c606888e0d3de77c3a39c2df129eae5c0072 /Makefile | |
Initial commit: Rust notification badge daemon for KDE Plasma 6
Monitors D-Bus for desktop notifications and emits Unity LauncherEntry
badge updates so KDE Plasma task manager shows notification counts.
- Streaming dbus-monitor parser with app matching and lifecycle tracking
- KWin window discovery for automatic desktop file detection
- Systemd user service, Makefile install/uninstall targets
- 38 tests (32 unit + 6 integration), 97% line coverage via cargo-llvm-cov
- CodeScene code health: 10/10 on all source files
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eca1cac --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +PREFIX ?= $(HOME)/.local + +.PHONY: build install uninstall test clean + +build: + cargo build --release + +test: + cargo test + +install: build + install -Dm755 target/release/notification-badge $(PREFIX)/bin/notification-badge + install -Dm644 notification-badge.service $(HOME)/.config/systemd/user/notification-badge.service + +uninstall: + rm -f $(PREFIX)/bin/notification-badge + rm -f $(HOME)/.config/systemd/user/notification-badge.service + -systemctl --user stop notification-badge.service 2>/dev/null + -systemctl --user disable notification-badge.service 2>/dev/null + +clean: + cargo clean |
