-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (28 loc) · 673 Bytes
/
Makefile
File metadata and controls
43 lines (28 loc) · 673 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
36
37
38
39
40
41
42
43
# Variables
PROTO_SRC_DIR := pkg/chains/ethereum/v1/proto
PROTO_DEST_DIR := pkg/chains/ethereum/v1/proto/generated
.PHONY: all proto clean
all: proto
# Create necessary directories
$(PROTO_DEST_DIR):
mkdir -p $(PROTO_DEST_DIR)
# Generate Protocol Buffers
proto: $(PROTO_DEST_DIR)
protoc --proto_path=$(PROTO_SRC_DIR) \
--go_out=$(PROTO_DEST_DIR) --go_opt=paths=source_relative \
$(PROTO_SRC_DIR)/*.proto
BINARY_NAME := ingest
build:
go build -o bin/$(BINARY_NAME) cmd/ingest/main.go
run: build
./bin/$(BINARY_NAME)
clean:
rm -rf pkg/proto bin/
format:
go fmt ./...
up:
docker-compose up -d
down:
docker-compose down
logs:
docker-compose logs -f