Clean up makefile to add support for waitress
HEADmaster1 files changed, 13 insertions, 5 deletions
|
diff --git a/Makefile b/Makefile index 1f72d53..34a3d59 100644 --- a/ Makefile+++ b/ Makefile |
@@ -1,20 +1,28 @@ |
1 | all: install |
1 | all: install |
2 | |
2 | |
3 | import: venv |
3 | install: venv/bin/flask |
| |
4 | |
| |
5 | import: install |
4 | venv/bin/python3 ./halfnarp2.py -i |
6 | venv/bin/python3 ./halfnarp2.py -i |
5 | |
7 | |
6 | do-export: venv |
8 | do-export: install |
7 | venv/bin/python3 ./halfnarp2.py -e |
9 | venv/bin/python3 ./halfnarp2.py -e |
8 | |
10 | |
9 | run: venv |
11 | run: install |
10 | PYTHONIOENCODING=utf-8 venv/bin/python3 ./halfnarp2.py |
12 | PYTHONIOENCODING=utf-8 venv/bin/python3 ./halfnarp2.py |
11 | |
13 | |
12 | run-fullnarp: venv |
14 | run-halfnarp-waitress: install venv/bin/waitress-serve |
| |
15 | PYTHONIOENCODING=utf-8 venv/bin/python3 venv/bin/waitress-serve --host 127.0.0.1 --port 5023 wsgi:app |
| |
16 | |
| |
17 | run-fullnarp: install |
13 | PYTHONIOENCODING=utf-8 venv/bin/python3 ./fullnarp.py |
18 | PYTHONIOENCODING=utf-8 venv/bin/python3 ./fullnarp.py |
14 | |
19 | |
| |
20 | venv/bin/waitress-serve: install |
| |
21 | venv/bin/pip install waitress |
| |
22 | |
15 | venv: |
23 | venv: |
16 | python3 -m venv ./venv |
24 | python3 -m venv ./venv |
17 | |
25 | |
18 | install: venv |
26 | venv/bin/flask: venv |
19 | venv/bin/pip install --upgrade pip |
27 | venv/bin/pip install --upgrade pip |
20 | venv/bin/pip install -r requirements.txt |
28 | venv/bin/pip install -r requirements.txt |
|