summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4d42076
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+VENV=venv
+PYTHON=$(VENV)/bin/python
+PIP=$(VENV)/bin/pip
+
+.PHONY: run
+run: $(VENV)/bin/activate app.py
+ $(PYTHON) app.py
+
+.PHONY: install
+install: $(VENV)/bin/activate
+
+$(VENV)/bin/activate: requirements.txt
+ python3 -m venv $(VENV)
+ $(PIP) install -r $^
+
+.PHONY: migrate
+migrate: migrate.py
+ $(PYTHON) $^ install
+
+.PHONY: clean
+clean:
+ rm -rf __pycache__
+ rm -rf $(VENV)