[CRIU] [PATCH 4/4] make: Make protobuf target to depend on *.ch

Cyrill Gorcunov gorcunov at openvz.org
Sat Sep 1 08:39:24 EDT 2012


Our general source code depends on headers
generated during protobuf library building
but if library is already built and *.ch
files are removed we might hit a problem
where dep files can't be generated.

Thus add explicit rule pointing out that
library depends on generated *.ch files.

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

diff --git a/protobuf/Makefile b/protobuf/Makefile
index 9a9ba22..f2a57ca 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -61,7 +61,7 @@ $(PROTO_LIBRARY): $(PROTO_OBJS)
 
 .PHONY: protobuf
 
-protobuf: $(PROTO_LIBRARY)
+protobuf: $(PROTO_LIBRARY) $(PROTO_SRCS) $(PROTO_HDRS)
 
 clean:
 	$(E) "  CLEAN PROTOBUF"
-- 
1.7.7.6



More information about the CRIU mailing list