update Makefile
This commit is contained in:
17
Makefile
17
Makefile
@@ -1,28 +1,25 @@
|
||||
.PHONY: install run clean build build-frontend build-backend build-appimage build-exe dist
|
||||
.PHONY: install run clean build build-appimage build-exe dist
|
||||
|
||||
VENV = venv
|
||||
PYTHON = $(VENV)/bin/python
|
||||
PIP = $(VENV)/bin/pip
|
||||
NPM = npm
|
||||
|
||||
install: $(VENV)
|
||||
$(NPM) install
|
||||
install: $(VENV) node_modules
|
||||
|
||||
$(VENV):
|
||||
python3 -m venv $(VENV)
|
||||
$(PIP) install --upgrade pip
|
||||
$(PIP) install -r requirements.txt
|
||||
|
||||
node_modules:
|
||||
$(NPM) install
|
||||
|
||||
run: install
|
||||
$(PYTHON) meshchat.py
|
||||
|
||||
build-frontend:
|
||||
$(NPM) run build-frontend
|
||||
|
||||
build-backend: install
|
||||
$(PYTHON) setup.py build
|
||||
|
||||
build: build-frontend build-backend
|
||||
build: install
|
||||
$(NPM) run build
|
||||
|
||||
build-appimage: build
|
||||
$(NPM) run electron-postinstall
|
||||
|
||||
Reference in New Issue
Block a user