From cda12028c15bfd12008a7a24f5289d5dfeb09620 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Mon, 10 Jun 2024 20:23:57 +0200 Subject: [PATCH] make Makefile Every project should have a Makefile ;) --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..010aa9a --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +VENV = venv +PYTHON = $(VENV)/bin/python3 +PIP = $(VENV)/bin/pip + +run: $(VENV)/bin/activate + $(PYTHON) init_db.py + $(PYTHON) run.py + + +$(VENV)/bin/activate: requirements.txt + python3 -m venv $(VENV) + $(PIP) install -r requirements.txt + + +clean: + rm -rf __pycache__ + rm -rf $(VENV) + rm -r taskmanager/__pycache__/ + rm instance/taskmanager.db