From a4ec5ffea14fa329f69eb69bd4329aa102536360 Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Tue, 17 Apr 2018 21:54:43 +0200 Subject: [PATCH] build: do not rebuild protobuf files by default to avoid rebuild after git clone --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7a7be3d..e654100 100644 --- a/Makefile +++ b/Makefile @@ -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=. $^