.
authorThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Tue, 21 Oct 2025 08:54:41 +0000 (08:54 +0000)
committerThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Tue, 21 Oct 2025 08:54:41 +0000 (08:54 +0000)
developer/make/target_library_cli.mk

index c644b96..954939d 100644 (file)
@@ -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)