Makefile 177 Bytes
Newer Older
Steven Allen's avatar
Steven Allen committed
1 2
PB = $(wildcard *.proto)
GO = $(PB:.proto=.pb.go)
Jan Winkelmann's avatar
Jan Winkelmann committed
3

Steven Allen's avatar
Steven Allen committed
4 5 6
all: $(GO)

%.pb.go: %.proto
Steven Allen's avatar
Steven Allen committed
7
		protoc --proto_path=$(GOPATH)/src:. --gogofaster_out=. $<
Jan Winkelmann's avatar
Jan Winkelmann committed
8 9

clean:
Steven Allen's avatar
Steven Allen committed
10 11
		rm -f *.pb.go
		rm -f *.go