-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 880 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) · 880 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
TAG=$(shell git describe --tags --abbrev=10 --dirty --long)
DIR ?= $(CURDIR)
.PHONY: dev
dev:
@echo " + $@"
@go install github.com/golang/protobuf/protoc-gen-go
# @go install github.com/gogo/protobuf/protoc-gen-gogofast
@wget -q -O protoc.zip "https://github.com/google/protobuf/releases/download/v3.14.0/protoc-3.14.0-linux-x86_64.zip"
@unzip -d protoc-tmp protoc.zip
@go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
@go install github.com/golangci/golangci-lint/cmd/golangci-lint
@go install github.com/favadi/protoc-go-inject-tag
style:
@goimports -w .
test:
@echo " + $@"
generated-srcs: proto-generated-srcs
@echo " + $@"
proto-generated-srcs:
@echo " + $@"
@scripts/generate-proto-srcs.sh
build: generated-srcs
@echo " + $@"
@scripts/go-build.sh
image: build
@echo " + $@"
@docker build -t wolfinger/varangian:$(TAG) image/