Commit dee617dc authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

make: Clean up build *.so if requested only

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 37b94082
......@@ -187,6 +187,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
##
......@@ -206,7 +207,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment