[CRIU] [PATCH] make: protobuf -- Add deps for headers generated

Cyrill Gorcunov gorcunov at openvz.org
Mon Apr 14 05:24:35 PDT 2014


Make sure the headers are generated before we're
trying to compile source files.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 protobuf/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/protobuf/Makefile b/protobuf/Makefile
index 2e40adeac763..3940fefe2ac0 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -92,6 +92,8 @@ ifeq ($(SRCARCH),arm)
 	$(Q) sed -i -e 's/4294967295/0xFFFFFFFF/g' $(patsubst %.h,%.c,$@)
 endif
 
+$(obj)/%.pb-c.c: $(obj)/%.pb-c.h
+
 $(obj)/%.o: $(obj)/%.pb-c.c $(obj)/%.pb-c.h
 	$(E) "  CC      " $@
 	$(Q) $(CC) -c $(CFLAGS) $< -o $@
-- 
1.8.3.1



More information about the CRIU mailing list