aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorspv <spv@spv.sh>2025-11-17 16:47:32 -0500
committerspv <spv@spv.sh>2025-11-17 16:47:32 -0500
commit6f2cd6be1d44fb13d75f66418c9a27b01b77a53d (patch)
tree7ba44fa400145e77ef487b9fd1de36d692e7cd9f /Makefile
parent6f010046f0f17a5684a0f30423e2b3c6a41099d1 (diff)
add WIP report gen, systemd user service, work time tracker, sig handling
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 23b98d2..895b6e0 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,20 @@ clean:
bin:
mkdir bin
-bin/stroke_buddy: src/main.c
+bin/stroke_buddy: src/main.c src/key_tracker.c src/report.c
${CC} $^ -o $@
run: all
bin/stroke_buddy
+
+install: all
+ cp -p bin/stroke_buddy ~/.local/bin/
+ cp -p res/stroke_buddy.service ~/.config/systemd/user/
+ ln -s ~/.config/systemd/user/stroke_buddy.service ~/.config/systemd/user/default.target.wants/stroke_buddy.service
+ mkdir -p ~/.local/stroke_buddy
+
+uninstall:
+ rm ~/.local/bin/stroke_buddy
+ rm ~/.config/systemd/user/stroke_buddy.service
+ rm ~/.config/systemd/user/default.target.wants/stroke_buddy.service
+# rm -rf ~/.local/stroke_buddy