31 lines
553 B
Makefile
31 lines
553 B
Makefile
.PHONY: default
|
|
default: run
|
|
|
|
include client/make.mk
|
|
|
|
.PHONY: run
|
|
run: $(CLIENT_TARGETS) venv
|
|
source venv/bin/activate && python main.py
|
|
|
|
.PHONY: build
|
|
build: $(CLIENT_TARGETS)
|
|
|
|
.PHONY: pack
|
|
pack: pythagoras.tar.xz
|
|
|
|
.PHONY: test
|
|
test: client_test
|
|
|
|
.PHONY: clean
|
|
clean: client_clean
|
|
rm -rf __pycache__
|
|
rm -rf venv
|
|
rm -f pythagoras.tar.xz
|
|
|
|
venv:
|
|
python -m venv venv
|
|
source venv/bin/activate && pip install --upgrade pip && pip install -r requirements.txt
|
|
|
|
pythagoras.tar.xz: main.py $(CLIENT_TARGETS)
|
|
tar --transform='s|^|pythagoras/|' -Jcvf $@ $^
|