-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 972 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
39
40
41
CONSUMER = consumer
PRODUCER = producer
.PHONY: coverage
coverage: ## Show tests coverage
make -C $(CONSUMER) coverage
make -C $(PRODUCER) coverage
.PHONY: tests
tests: ## Run tests
make -C $(CONSUMER) tests
make -C $(PRODUCER) tests
.PHONY: check-types
check-types: ## Run static type checking
make -C $(CONSUMER) check-types
make -C $(PRODUCER) check-types
.PHONY: lint
lint: ## Run the linter
make -C $(CONSUMER) lint
make -C $(PRODUCER) lint
.PHONY: init
init: ## Initialize dev environment
make -C $(CONSUMER) init
make -C $(PRODUCER) init
.PHONY: build
build: ## Build Docker images
docker-compose build
.PHONY: run
run: ## Run locally
docker-compose up
.DEFAULT_GOAL := help
.PHONY: help
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)