-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 676 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 676 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
29
30
31
32
33
34
35
.ONESHELL:
.DEFAULT_GOAL := help
# allow user specific optional overrides
-include Makefile.overrides
export
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: up
up: ## start all systems
@docker-compose up --build --force-recreate
.PHONY: down
down: ## close everything
@docker-compose down
.PHONY: build
build: ## builds the reader application
@go build -o build/ ./...
.PHONY: rm
rm: ## cleanup everything
@docker-compose down --remove-orphans --volumes
.PHONY: run
run: ## run api locally
@go run ./...
.PHONY: deps
deps: ## download dependencies
@go mod download