-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (17 loc) · 759 Bytes
/
Makefile
File metadata and controls
28 lines (17 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: clean configure build install proto help
.DEFAULT_GOAL := help
clean: ## Clean all generated build files in the project.
rm -rf asagym.egg-info/
configure: ## Configure the project for building.
python3 -m venv ../dist/venv
build: ## Build all targets in the project.
bash -c "source ../dist/venv/bin/activate && \
pip install grpcio-tools && \
python -m grpc_tools.protoc -I=asagym/proto \
--python_out=asagym/proto \
--pyi_out=asagym/proto \
asagym/proto/simulator.proto"
install: ## Install all targets in the project.
bash -c "source ../dist/venv/bin/activate && pip install -e ."
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'