mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
images/Makefile: use msg-gen
In general, we use "$(E)" instead of "$(Q) echo", but we also have a msg-gen macro which can be used here. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
e9521d8e41
commit
59970a606d
@ -95,7 +95,7 @@ makefile-deps := Makefile $(obj)/Makefile
|
|||||||
DESCRIPTOR_DIR := images/google/protobuf
|
DESCRIPTOR_DIR := images/google/protobuf
|
||||||
GOOGLE_INCLUDE=$(shell pkg-config protobuf --variable=includedir)/google/protobuf
|
GOOGLE_INCLUDE=$(shell pkg-config protobuf --variable=includedir)/google/protobuf
|
||||||
$(DESCRIPTOR_DIR)/descriptor.pb-c.c: $(GOOGLE_INCLUDE)/descriptor.proto
|
$(DESCRIPTOR_DIR)/descriptor.pb-c.c: $(GOOGLE_INCLUDE)/descriptor.proto
|
||||||
$(Q) echo "Generating descriptor.pb-c.c"
|
$(call msg-gen, $@)
|
||||||
$(Q) protoc --proto_path=/usr/include --proto_path=$(obj)/ --c_out=$(obj)/ $<
|
$(Q) protoc --proto_path=/usr/include --proto_path=$(obj)/ --c_out=$(obj)/ $<
|
||||||
|
|
||||||
cleanup-y += $(DESCRIPTOR_DIR)/descriptor.pb-c.d
|
cleanup-y += $(DESCRIPTOR_DIR)/descriptor.pb-c.d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user