]> us-delaporte.pagekite.me Git - matrix-cadbury.git/blobdiff - Makefile
easier prefix to type
[matrix-cadbury.git] / Makefile
index 37762b6995d5c321f72d76d019190479d3ca7637..ad9a13263cfbfe2674630ce7a48bd0381c942089 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,21 @@
-.PHONY: serve test strict
+.PHONY: serve update
 
-MODULE=cadbury
-
-.venv:
+.venv: pyproject.toml
        python -m venv .venv
        .venv/bin/pip install .
 
 serve: .venv
-       .venv/bin/python bot.py
+       .venv/bin/python app.py
+
+setup:
+       .venv/bin/invoke chores.setup
+       .venv/bin/invoke fridge.setup
+       .venv/bin/invoke goals.setup
+       .venv/bin/invoke shop.setup
 
 clean:
        rm -rf .venv
        rm -f session.txt  # Reset session
 
-test: .venv
-       .venv/bin/pip install .[test]
-       .venv/bin/mypy -m $(MODULE)
-
-strict: .venv
-       .venv/bin/mypy --strict -m $(MODULE)
-
+update: clean .venv
+       systemctl restart cadbury