aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7986c927c62810322e7649221bdfe1f960f29aa6 (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
32
33
34
35
36
test: all
	cd solo-tool-project/test && ../../.venv/bin/pytest *test.py

all: .venv .git/hooks/pre-commit

clean:
	rm -rf .venv

.git/hooks/pre-commit: pre-commit
	install -m 755 pre-commit .git/hooks/pre-commit

.venv: .venv/touchfile

.venv/touchfile: requirements.txt solo-tool-project/pyproject.toml cli-project/pyproject.toml web-project/pyproject.toml
	rm -rf venv
	uv venv
	uv pip install -r requirements.txt
	touch .venv/touchfile

gui: .venv/touchfile
	./.venv/bin/python web-project/src/solo_tool_web.py 8080

install: deployment/solo-tool.service deployment/start-solo-tool.sh
	mkdir -p ~/.config/systemd/user
	install -o eddy -g eddy -m 644 deployment/solo-tool.service ~/.config/systemd/user
	chmod 755 deployment/start-solo-tool.sh
	systemctl --user daemon-reload
	systemctl --user enable solo-tool.service
	systemctl --user restart solo-tool.service

uninstall:
	systemctl --user disable --now solo-tool.service
	rm ~/.config/systemd/user/solo-tool.service
	systemctl --user daemon-reload

.PHONY: all test clean gui install uninstall