Message ID | 20211217055041.19559-10-rostedt@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 6081ed7364fc16cdf1a031886c5fcc3b788dfb37 |
Headers | show |
Series | libtracefs: Updates to the Makefile | expand |
diff --git a/scripts/utils.mk b/scripts/utils.mk index c9b908f1c5d9..af0f14fcbfa7 100644 --- a/scripts/utils.mk +++ b/scripts/utils.mk @@ -60,7 +60,10 @@ do_app_build = \ do_build_static_lib = \ ($(print_static_lib_build) \ - mv $@ $@.rm; $(RM) $@.rm; $(AR) rcs $@ $^) + if [ -f $@ ]; then \ + mv $@ $@.rm; $(RM) $@.rm; \ + fi; \ + $(AR) rcs $@ $^) do_compile_shared_library = \ ($(print_shared_lib_compile) \