-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (43 loc) · 1004 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# go
GOCMD=go
GOBUILD=$(GOCMD) build
GORUN=$(GOCMD) run
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GOINSTALL=$(GOCMD) install
MAKE=make
BUILD_PATH=build
SCRIPTS_PATH=scripts
# Docker
DOCKER=docker
DC=docker-compose
DCUP=up -d
LNX_BUILD=$(build)/$(BINARY_NAME)
WIN_BUILD=$(build)/$(BINARY_NAME).exe
export GO111MODULE=on
include cmd/parser/Makefile
include cmd/server/Makefile
include cmd/clusterizer/Makefile
include cmd/cli/Makefile
include cmd/spider/Makefile
default: server
.PHONY: all
all: test build
.PHONY: test
test:
$(GOTEST) -v ./...
.PHONY: clean
clean:
$(GOCLEAN)
rm -f $(BUILD_PATH)
.PHONY: build
build: build_parser build_server build_clusterizer build_spider
.PHONY: install
install: install_parser install_server install_clusterizer install_spider
docker-deps:
$(DC) $(DCUP) postgres redis
docker-otel:
$(DC) $(DCUP) jaeger prometheus grafana config-concat loki fluent-bit
# # deploy:
# # ansible-playbook -i deploy/inventory.txt deploy/deploy.yml