Skip to content

Instantly share code, notes, and snippets.

@kylelemons
Created October 20, 2011 18:27
Show Gist options
  • Select an option

  • Save kylelemons/1301885 to your computer and use it in GitHub Desktop.

Select an option

Save kylelemons/1301885 to your computer and use it in GitHub Desktop.

Revisions

  1. kylelemons revised this gist Oct 20, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ include $(GOROOT)/src/Make.inc
    PROTOFILES=$(wildcard *.proto)
    GOPROTOFILES=$(patsubst %.proto,%.pb.go,$(PROTOFILES))

    TARG=platforms/mtp/proto
    TARG=protopackage
    GOFILES=\
    $(GOPROTOFILES)\

  2. kylelemons created this gist Oct 20, 2011.
    15 changes: 15 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    include $(GOROOT)/src/Make.inc

    PROTOFILES=$(wildcard *.proto)
    GOPROTOFILES=$(patsubst %.proto,%.pb.go,$(PROTOFILES))

    TARG=platforms/mtp/proto
    GOFILES=\
    $(GOPROTOFILES)\

    CLEANFILES+=$(GOPROTOFILES)

    include $(GOROOT)/src/Make.pkg

    $(GOPROTOFILES) : $(PROTOFILES)
    protoc --go_out=. $^