Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (27 sloc) 614 Bytes
.PHONY: \
all \
deps \
updatedeps \
build \
clean \
proto
all: proto build
deps:
go get -d -v ./...
updatedeps:
go get -d -v -u -f ./...
build: deps
go build ./...
clean:
go clean ./...
proto:
rm -rf /tmp/google-protobuf
git clone https://github.com/google/protobuf.git /tmp/google-protobuf
rm -rf google/protobuf
mkdir -p google/protobuf
for file in $$(ls /tmp/google-protobuf/src/google/protobuf/*\.proto | grep -v test | grep -v descriptor\.proto); do \
cp $$file google/protobuf/; \
done
protoc --proto_path=. --go_out=. google/protobuf/*\.proto
mv google/protobuf/* .
rm -rf google