Remove Go-specific logic from Makefile (#60)

Since Go is no longer generated from this repo,
make will now error if we set LANGUAGE=go.
pull/61/head
Michael Darakananda 9 years ago committed by GitHub
parent 0078ddc9ea
commit c6f350d2c0
  1. 14
      Makefile

@ -23,19 +23,15 @@ PROTOINCLUDE ?= /usr/local/include
# NOTE: if "protoc" command is not in the PATH, you need to modify this file.
#
FLAGS+= --proto_path=.:$(PROTOINCLUDE)
ifeq ($(LANGUAGE),go)
FLAGS+= --$(LANGUAGE)_out=plugins=grpc:$(OUTPUT)
else
FLAGS+= --$(LANGUAGE)_out=$(OUTPUT) --grpc_out=$(OUTPUT)
FLAGS+= --plugin=protoc-gen-grpc=$(GPRCPLUGIN)
$(error Go source files are not generated from this repository. See: https://github.com/google/go-genproto)
endif
ifeq ($(LANGUAGE),go)
SUFFIX:= pb.go
else
FLAGS+= --proto_path=.:$(PROTOINCLUDE)
FLAGS+= --$(LANGUAGE)_out=$(OUTPUT) --grpc_out=$(OUTPUT)
FLAGS+= --plugin=protoc-gen-grpc=$(GPRCPLUGIN)
SUFFIX:= pb.cc
endif
DEPS:= $(shell find google $(PROTOINCLUDE)/google/protobuf -type f -name '*.proto' | sed "s/proto$$/$(SUFFIX)/")

Loading…
Cancel
Save