CC=gcc all: bin bin/stroke_buddy clean: rm -rf bin bin: mkdir bin 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