build: do not rebuild protobuf files by default to avoid rebuild after git clone
parent
0ca34413d6
commit
a4ec5ffea1
4
Makefile
4
Makefile
|
@ -29,7 +29,7 @@ VERSION_LDFLAGS=-X github.com/omniscale/imposm3.Version=$(BUILD_VERSION)
|
||||||
|
|
||||||
all: build test
|
all: build test
|
||||||
|
|
||||||
imposm: $(PBGOFILES) $(GOFILES)
|
imposm: $(GOFILES)
|
||||||
$(GO) build $(GOTAGS) $(GOLDFLAGS) ./cmd/imposm
|
$(GO) build $(GOTAGS) $(GOLDFLAGS) ./cmd/imposm
|
||||||
|
|
||||||
build: imposm
|
build: imposm
|
||||||
|
@ -52,6 +52,8 @@ test-system: imposm
|
||||||
system-test-files:
|
system-test-files:
|
||||||
(cd test && make files)
|
(cd test && make files)
|
||||||
|
|
||||||
|
regen-protobuf: $(PBGOFILES)
|
||||||
|
|
||||||
%.pb.go: %.proto
|
%.pb.go: %.proto
|
||||||
protoc --proto_path=$(GOPATH)/src:$(GOPATH)/src/github.com/omniscale/imposm3/vendor/github.com/gogo/protobuf/protobuf:. --gogofaster_out=. $^
|
protoc --proto_path=$(GOPATH)/src:$(GOPATH)/src/github.com/omniscale/imposm3/vendor/github.com/gogo/protobuf/protobuf:. --gogofaster_out=. $^
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue