make Makefile

Every project should have a Makefile ;)
This commit is contained in:
Malin Freeborn 2024-06-10 20:23:57 +02:00
parent 7ea0a7ddb7
commit cda12028c1
Signed by: andonome
GPG Key ID: 52295D2377F4D70F

19
Makefile Normal file
View File

@ -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