make Makefile
Every project should have a Makefile ;)
This commit is contained in:
parent
7ea0a7ddb7
commit
cda12028c1
19
Makefile
Normal file
19
Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user