aman/Makefile

27 lines
633 B
Makefile

CONFIG := $(HOME)/.config/aman/config.json
.PHONY: run doctor install sync test check
run:
uv run python3 src/aman.py run --config $(CONFIG)
doctor:
uv run python3 src/aman.py doctor --config $(CONFIG)
sync:
uv sync
test:
python3 -m unittest discover -s tests -p 'test_*.py'
check:
python3 -m py_compile src/*.py
$(MAKE) test
install:
mkdir -p $(HOME)/.local/share/aman/src/assets
cp src/*.py $(HOME)/.local/share/aman/src/
cp src/assets/*.png $(HOME)/.local/share/aman/src/assets/
cp systemd/aman.service $(HOME)/.config/systemd/user/aman.service
systemctl --user daemon-reload
systemctl --user enable --now aman