-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
38 lines (28 loc) · 921 Bytes
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
default: build
DEV_COMPOSE_FILE = docker-compose.yml
help: ## Show this help
@echo "Usage: make [target]"
@awk 'BEGIN {FS = ":.*?## "} /^[\/.a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: help
build: build-gateway ## Build missing studio project
.PHONY: build
test:
sh -c "cd ./gateway && make test"
.PHONY: test
build-gateway:
sh -c "cd ./gateway && make all"
.PHONY: build-gateway
build-protos: ## Build missing studio protos
sh -c "cd ./protos && make all"
.PHONY: build-protos
clean: clean-gateway ## Clean missing studio
.PHONY: clean
clean-gateway:
@echo "Cleaning gateway.."
sh -c "cd ./gateway && make clean"
.PHONY: clean-gateway
rebuild: clean build ## Rebuild missing studio again
.PHONY: rebuild
up: rebuild ## Start a missing studio container
sh -c "docker compose -f $(DEV_COMPOSE_FILE) up -d"
.PHONY: up