Created
October 20, 2011 18:27
-
-
Save kylelemons/1301885 to your computer and use it in GitHub Desktop.
A Makefile for protocol buffers in Go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include $(GOROOT)/src/Make.inc | |
PROTOFILES=$(wildcard *.proto) | |
GOPROTOFILES=$(patsubst %.proto,%.pb.go,$(PROTOFILES)) | |
TARG=protopackage | |
GOFILES=\ | |
$(GOPROTOFILES)\ | |
CLEANFILES+=$(GOPROTOFILES) | |
include $(GOROOT)/src/Make.pkg | |
$(GOPROTOFILES) : $(PROTOFILES) | |
protoc --go_out=. $^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment