summaryrefslogtreecommitdiff
path: root/Makefile
blob: 34a3d59ea5de2fc29648320d4d2ece5854ffbffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
all: install

install: venv/bin/flask

import: install
	venv/bin/python3 ./halfnarp2.py -i

do-export: install
	venv/bin/python3 ./halfnarp2.py -e

run: install
	PYTHONIOENCODING=utf-8 venv/bin/python3 ./halfnarp2.py

run-halfnarp-waitress: install venv/bin/waitress-serve
	PYTHONIOENCODING=utf-8 venv/bin/python3 venv/bin/waitress-serve --host 127.0.0.1 --port 5023 wsgi:app

run-fullnarp: install
	PYTHONIOENCODING=utf-8 venv/bin/python3 ./fullnarp.py

venv/bin/waitress-serve: install
	venv/bin/pip install waitress

venv:
	python3 -m venv ./venv

venv/bin/flask: venv
	venv/bin/pip install --upgrade pip
	venv/bin/pip install -r requirements.txt