Skip to content

Commit

Permalink
Remove google/protobuf subdirectory, which should be replaced by goog…
Browse files Browse the repository at this point in the history
…le/protobuf gitrepo. Update Makefile to reflect the change
  • Loading branch information
ethanbao committed Aug 14, 2015
1 parent 16b971c commit bd90877
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 1,066 deletions.
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ OUTPUT ?= ./gens
# Choose the target language.
LANGUAGE ?= cpp

# Choose the proto include directory.
PROTOINCLUDE ?= /usr/local/include

# Compile the entire repository
#
# NOTE: if the "protoc" command is not in the PATH or the protobuf include
# directory is not "/usr/local/include", you need to modify this file.
# NOTE: if "protoc" command is not in the PATH, you need to modify this file.
#

FLAGS+= --proto_path=.:/usr/local/include
FLAGS+= --proto_path=.:$(PROTOINCLUDE)
ifeq ($(LANGUAGE),go)
FLAGS+= --$(LANGUAGE)_out=plugins=grpc:$(OUTPUT)
else
Expand All @@ -33,7 +35,7 @@ ifeq ($(LANGUAGE),cpp)
SUFFIX:= pb.cc
endif

DEPS:= $(shell find google -type f -name '*.proto' | sed "s/proto$$/$(SUFFIX)/")
DEPS:= $(shell find google $(PROTOINCLUDE)/google/protobuf -type f -name '*.proto' | sed "s/proto$$/$(SUFFIX)/")

all: supported_lang $(DEPS)

Expand All @@ -42,9 +44,12 @@ ifndef SUFFIX
$(error unsupported language: [$(LANGUAGE)])
endif

ifdef OUTPUT
mkdir -p $(OUTPUT)
endif

%.$(SUFFIX): %.proto
mkdir -p $(OUTPUT)
protoc $(FLAGS) $(dir $<)*.proto
protoc $(FLAGS) $*.proto

clean:
rm $(patsubst %,$(OUTPUT)/%,$(DEPS)) 2> /dev/null
Expand Down
6 changes: 0 additions & 6 deletions google/protobuf/README.md

This file was deleted.

104 changes: 0 additions & 104 deletions google/protobuf/any.proto

This file was deleted.

105 changes: 0 additions & 105 deletions google/protobuf/api.proto

This file was deleted.

94 changes: 0 additions & 94 deletions google/protobuf/duration.proto

This file was deleted.

0 comments on commit bd90877

Please sign in to comment.