blob: d4803f4264297540fa3128c8a17aea8518e80eae (
plain)
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
|
CC=gcc
all: bin bin/stroke_buddy bin/sb
clean:
rm -rf bin
bin:
mkdir bin
bin/stroke_buddy: src/main.c src/key_tracker.c src/report.c
${CC} $^ -o $@
bin/sb: src/sb
cp $^ $@
run: all
bin/stroke_buddy
install: all
cp -pf bin/stroke_buddy ~/.local/bin/
cp -pf res/stroke_buddy.service ~/.config/systemd/user/
cp -p src/sb ~/.local/bin
ln -fs ~/.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
|