1From 1e541293ac19c49f886220b64de6006c5c700144 Mon Sep 17 00:00:00 2001
2From: Romain Naour <romain.naour@gmail.com>
3Date: Sat, 12 Jan 2019 12:50:54 +0100
4Subject: [PATCH] Makefile: add -f option for ln to remove existing destination
5 files
6
7While reinstalling the library, all symlinks are present.
8Ask ln to remove them with -f.
9
10Signed-off-by: Romain Naour <romain.naour@gmail.com>
11---
12 Makefile | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/Makefile b/Makefile
16index fd7d6c8..2683819 100644
17--- a/Makefile
18+++ b/Makefile
19@@ -25,8 +25,8 @@ install: $(LIB) $(LIBA) libsquish.pc
20 	$(INSTALL_FILE) $(LIBA) $(INSTALL_DIR)/$(LIB_PATH)
21 ifneq ($(USE_SHARED),0)
22 	$(INSTALL_FILE) $(LIB) $(INSTALL_DIR)/$(LIB_PATH)
23-	ln -s $(LIB) $(INSTALL_DIR)/$(LIB_PATH)/$(SOLIB)
24-	ln -s $(LIB) $(INSTALL_DIR)/$(LIB_PATH)/libsquish.so
25+	ln -sf $(LIB) $(INSTALL_DIR)/$(LIB_PATH)/$(SOLIB)
26+	ln -sf $(LIB) $(INSTALL_DIR)/$(LIB_PATH)/libsquish.so
27 	$(INSTALL_DIRECTORY) $(INSTALL_DIR)/$(LIB_PATH)/pkgconfig
28 	$(INSTALL_FILE) libsquish.pc $(INSTALL_DIR)/$(LIB_PATH)/pkgconfig
29 endif
30--
312.14.5
32
33