about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mpd-stats/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/mpd-stats/Makefile b/tools/mpd-stats/Makefile
new file mode 100644
index 0000000..0edb9dd
--- /dev/null
+++ b/tools/mpd-stats/Makefile
@@ -0,0 +1,12 @@
+GO_INSTALL_ARGS := -trimpath
+
+.PHONY: install
+
+install:
+	@go install $(GO_INSTALL_ARGS) ./cmd/mpd-scrobbler
+	@install -m 0644 systemd/mpd-scrobbler.service $(HOME)/.config/systemd/user/
+	@echo "reloading systemd"
+	@systemctl --user daemon-reload
+	@echo "starting the unit"
+	@systemctl --user restart mpd-scrobbler
+	@systemctl --user status mpd-scrobbler