21 lines
570 B
Makefile
21 lines
570 B
Makefile
VENV_DIR := .venv
|
|
|
|
default: install web
|
|
|
|
venv: $(VENV_DIR)
|
|
|
|
$(VENV_DIR):
|
|
python3 -m venv $@
|
|
|
|
install: venv
|
|
@$(VENV_DIR)/bin/pip install -r backend/requirements.txt
|
|
git submodule init
|
|
git submodule update
|
|
|
|
web: frontend-vue/dist/index.html
|
|
|
|
#frontend/build/web/index.html: $(shell find frontend/lib -name '*.dart')
|
|
# cd frontend && flutter build web --release --source-maps --no-web-resources-cdn
|
|
|
|
frontend-vue/dist/index.html: $(shell find frontend-vue/src -name '*.vue' -or -name '*.js*' -or -name '*.css*') frontend-vue/index.html
|
|
cd frontend-vue && npm run build
|