mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-19 02:50:08 -06:00
Makefile: fix protobuf dependencies
Another fix to address "make -j" issues
This commit is contained in:
@@ -14,12 +14,12 @@ protoc-deps: $(BINGO)
|
|||||||
@cd ../.. && GOPATH="" GOBIN=".bingo" $(BINGO) get -l github.com/favadi/protoc-go-inject-tag
|
@cd ../.. && GOPATH="" GOBIN=".bingo" $(BINGO) get -l github.com/favadi/protoc-go-inject-tag
|
||||||
|
|
||||||
.PHONY: buf-generate
|
.PHONY: buf-generate
|
||||||
buf-generate: $(BUF) protoc-deps $(SHA1_LOCK_FILE)
|
buf-generate: $(SHA1_LOCK_FILE)
|
||||||
@find $(abspath $(CURDIR)/../../protogen/proto/) -type f -print0 | sort -z | xargs -0 sha1sum > buf.sha1.lock.tmp
|
@find $(abspath $(CURDIR)/../../protogen/proto/) -type f -print0 | sort -z | xargs -0 sha1sum > buf.sha1.lock.tmp
|
||||||
@cmp $(SHA1_LOCK_FILE) buf.sha1.lock.tmp --quiet || $(MAKE) -B $(SHA1_LOCK_FILE)
|
@cmp $(SHA1_LOCK_FILE) buf.sha1.lock.tmp --quiet || $(MAKE) -B $(SHA1_LOCK_FILE)
|
||||||
@rm -f buf.sha1.lock.tmp
|
@rm -f buf.sha1.lock.tmp
|
||||||
|
|
||||||
$(SHA1_LOCK_FILE):
|
$(SHA1_LOCK_FILE): $(BUF) protoc-deps
|
||||||
@echo "generating protobuf content"
|
@echo "generating protobuf content"
|
||||||
cd ../../protogen/proto && $(BUF) generate
|
cd ../../protogen/proto && $(BUF) generate
|
||||||
find $(abspath $(CURDIR)/../../protogen/proto/) -type f -print0 | sort -z | xargs -0 sha1sum > $(SHA1_LOCK_FILE)
|
find $(abspath $(CURDIR)/../../protogen/proto/) -type f -print0 | sort -z | xargs -0 sha1sum > $(SHA1_LOCK_FILE)
|
||||||
|
|||||||
Reference in New Issue
Block a user