From: Thomas Walker Lynch Date: Tue, 21 Oct 2025 08:54:41 +0000 (+0000) Subject: . X-Git-Url: https://git.reasoningtechnology.com/style/%7Bstyle.link%7D?a=commitdiff_plain;h=61a2bd0732eced586b3a455b6ab7cf4577b52696;p=RT-project-share . --- diff --git a/developer/make/target_library_cli.mk b/developer/make/target_library_cli.mk index c644b96..954939d 100644 --- a/developer/make/target_library_cli.mk +++ b/developer/make/target_library_cli.mk @@ -79,7 +79,12 @@ NEED_LIB := $(strip $(OBJECT_LIB)) LIB_ARG := $(if $(NEED_LIB),$(LIBFILE),) # expands to lib path only when needed .PHONY: library -library: $(if $(NEED_LIB),$(LIBFILE),.remove_lib_if_exists) +library: $(if $(NEED_LIB),$(LIBFILE),.remove_lib_if_exists + +.PHONY: .remove_lib_if_exists +.remove_lib_if_exists: + @rm -f $(LIBFILE) +) ifneq ($(NEED_LIB),) $(LIBFILE): $(OBJECT_LIB)