[CRIU] [PATCH 1/3] make: define CONFIG_COMPAT on mrproper/clean

Dmitry Safonov dsafonov at virtuozzo.com
Fri Sep 23 07:20:32 PDT 2016


As it's a make/build option, the set of files to compile depends
on it. We don't do feature tests on mrproper/clean (no point in it).
Let's define CONFIG_COMPAT for those targets, so compiled files
will be properly cleaned.

Reported-by: Adrian Reber <adrian at lisas.de>
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 criu/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/criu/Makefile b/criu/Makefile
index 7bcd55d9bac0..f7a25ab4c893 100644
--- a/criu/Makefile
+++ b/criu/Makefile
@@ -46,6 +46,9 @@ include $(SRC_DIR)/criu/Makefile.packages
 CONFIG_HEADER := $(obj)/include/config.h
 ifneq ($(filter-out clean mrproper,$(MAKECMDGOALS)),)
 include $(SRC_DIR)/criu/Makefile.config
+else
+# To clean all files, enable make/build options here
+export CONFIG_COMPAT := y
 endif
 
 #
-- 
2.10.0



More information about the CRIU mailing list