-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 857 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 857 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
NAME=rtb-protobuf-parser
OS=linux darwin
VERSION=0.0.4
.PHONY: build install release
deps:
go get github.com/progrium/gh-release/...
go get github.com/mitchellh/gox/...
go get github.com/tools/godep
go get || true
build:
mkdir -p build/
gox -os="$(OS)" -arch="amd64" -output="build/{{.OS}}/$(NAME)"
install: build
install build/$(shell uname -s)/$(NAME) /usr/local/bin
release:
rm -rf release && mkdir release
tar -zcf release/$(NAME)_$(VERSION)_linux_x86_64.tgz -C build/linux $(NAME)
tar -zcf release/$(NAME)_$(VERSION)_darwin_x86_64.tgz -C build/darwin $(NAME)
gh-release checksums sha256
gh-release create taik/$(NAME) $(VERSION) $(shell git rev-parse --abbrev-ref HEAD) v$(VERSION); true
gen_proto:
go get github.com/gogo/protobuf/protoc-gen-gofast
protoc --gofast_out=. proto_adx/*.proto
protoc --gofast_out=. proto_openx/*.proto