mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +00:00
19 lines
407 B
Makefile
19 lines
407 B
Makefile
|
.DEFAULT_GOAL := install
|
||
|
|
||
|
.PHONY: install
|
||
|
install: protogen
|
||
|
bash install.sh
|
||
|
|
||
|
.PHONY: protogen
|
||
|
protogen: backend_pb2_grpc.py backend_pb2.py
|
||
|
|
||
|
.PHONY: protogen-clean
|
||
|
protogen-clean:
|
||
|
$(RM) backend_pb2_grpc.py backend_pb2.py
|
||
|
|
||
|
backend_pb2_grpc.py backend_pb2.py:
|
||
|
python3 -m grpc_tools.protoc -I../.. --python_out=. --grpc_python_out=. backend.proto
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean: protogen-clean
|
||
|
rm -rf venv __pycache__
|