build: do not rebuild protobuf files by default to avoid rebuild after git clone

master
Oliver Tonnhofer 2018-04-17 21:54:43 +02:00
parent 0ca34413d6
commit a4ec5ffea1
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,7 @@ VERSION_LDFLAGS=-X github.com/omniscale/imposm3.Version=$(BUILD_VERSION)
all: build test
imposm: $(PBGOFILES) $(GOFILES)
imposm: $(GOFILES)
$(GO) build $(GOTAGS) $(GOLDFLAGS) ./cmd/imposm
build: imposm
@ -52,6 +52,8 @@ test-system: imposm
system-test-files:
(cd test && make files)
regen-protobuf: $(PBGOFILES)
%.pb.go: %.proto
protoc --proto_path=$(GOPATH)/src:$(GOPATH)/src/github.com/omniscale/imposm3/vendor/github.com/gogo/protobuf/protobuf:. --gogofaster_out=. $^