[CRIU] [PATCH] make: Clean up build *.so if requested only

Cyrill Gorcunov gorcunov at openvz.org
Thu Sep 5 06:10:00 EDT 2013


In OpenVZ -> CRIU converter I use same build engine
as in criu. But converter has own specifics such as
shipping precompiled vdso.so libraries. So when I
call for "make clean" these precompiled files get
automatically deleted, which in turn cause converter
to fail on next build attempt.

Thus lets delete only *.so targets which are declared
in makefiles.

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

diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 2a4ae44..e72e04b 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -166,6 +166,7 @@ $(obj)/$(lib-so).so: $(all-objs) $(libs-e)
 	$(Q) $(CC) -shared $(cflags-so) -o $@ $^
 
 _all += $(obj)/$(lib-so).so
+cleanup-y += $(obj)/$(lib-so).so
 endif
 
 ##
@@ -185,7 +186,6 @@ cleanup-y += $(obj)/*.o $(obj)/*.d
 cleanup-y += $(obj)/*.i $(obj)/*.s
 cleanup-y += $(obj)/*.built-in.o
 cleanup-y += $(obj)/built-in.o
-cleanup-y += $(obj)/*.so
 
 ##
 ## Predefined .PHONY targets
-- 
1.8.1.4



More information about the CRIU mailing list