-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
42 lines (32 loc) · 944 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
VERSION=`git describe --tags`
TIMESTAMP=`date +%FT%T%z`
.PHONY: all
all:
@echo "make <cmd>"
@echo ""
@echo "commands:"
@echo " test - test the source code"
@echo " lint - lint the source code"
@echo " fmt - format the source code"
@echo " install - install dependencies"
lint:
@golangci-lint run
fmt:
@go fmt ./...
build_static:
env CGO_ENABLED=0 env GOOS=linux GOARCH=amd64 go build ${LDFLAGS}
compile: lint
@go build ./...
test: compile
@go test ./...
proto:
@protoc -I /usr/local/include \
-I ./pipeline \
--go_out=plugins=grpc:pipeline \
./pipeline/*.proto
peg:
@peg -inline ./primitive/compute/result/complex_field.peg
install:
@go get -u github.com/golang/protobuf/protoc-gen-go@d3c38a4eb4970272b87a425ae00ccc4548e2f9bb
@go get -u github.com/pointlander/peg@21bead84a59870739b2ee9eac3125ff9e5767e00
@go get github.com/golangci/golangci-lint/cmd/[email protected]