[CRIU] [PATCH] make: Rebuild objects if headers are changed

Cyrill Gorcunov gorcunov at openvz.org
Sat Mar 31 05:35:52 EDT 2012


At moment no-deps-targets is empty thus changes
in headers do not cause correspond source files
to be rebuilt. Fix it.

Reported-by: Andrey Vagin <avagin at openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 94161f9..40e3249 100644
--- a/Makefile
+++ b/Makefile
@@ -200,6 +200,8 @@ help:
 	$(E) '      test            - Run zdtm test-suite'
 .PHONY: help
 
-ifeq ($(filter-out no-deps-targets, $(MAKECMDGOALS)),)
+deps-targets := %.o %.s %.i
+
+ifeq ($(filter deps-targets, $(MAKECMDGOALS)),)
 -include $(DEPS)
 endif
-- 
1.7.7.6



More information about the CRIU mailing list