19 lines
421 B
Makefile
19 lines
421 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
|
|
cd frontend && npm install
|
|
|
|
web: frontend/dist/index.html
|
|
|
|
frontend/dist/index.html: $(shell find frontend/src -name '*.vue' -or -name '*.js*' -or -name '*.css*') frontend/index.html
|
|
cd frontend && npm run build
|