~fabrixxm/lesanaweb

ref: 064fcca59231163b589a35a9c8f8a49904621100 lesanaweb/Makefile -rw-r--r-- 577 bytes
064fcca5fabrixxm Update CHANGELOG 10 months ago
                                                                                
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
29
30
31
32
LW_COLLECTION_PATH?=work/collection
LESANA=lesana
ifneq ("$(wildcard $(.env/bin/lesana))","")
    LESANA=.env/bin/lesana
endif

FLASK=flask
ifneq ("$(wildcard $(.env/bin/flask))","")
    FLASK=.env/bin/flask
endif

all:
	@echo "env"
	@echo "install"
	@echo "init"
	@echo "run"

env:
	rm -fr .env
	python -m venv --system-site-packages .env

install:
	./.env/bin/pip install -e .

init:
	${LESANA} init --no-git -c ${LW_COLLECTION_PATH}

run:
	FLASK_APP=lesanaweb FLASK_ENV=development LW_COLLECTION_PATH=${LW_COLLECTION_PATH} ${FLASK} run

clean:
	rm -fr build dist *.egg-info