From 4d6d662c67786c86647cf41b5b20d9c0b418dbb3 Mon Sep 17 00:00:00 2001 From: rszyma Date: Thu, 4 Jan 2024 10:20:17 +0100 Subject: [PATCH] Makefile: force ln command to overwrite symlink (#4347) When running `make install` twice ln shows an error: ``` ln -s -r /usr/local/bin/Hyprland /usr/local/bin/hyprland ln: failed to create symbolic link '/usr/local/bin/hyprland': File exists ``` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a0b00259..ecfb30f1 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ install: chmod 755 ${PREFIX}/bin/Hyprland chmod 755 ${PREFIX}/bin/hyprctl chmod 755 ${PREFIX}/bin/hyprpm - ln -s -r ${PREFIX}/bin/Hyprland ${PREFIX}/bin/hyprland + ln -s -r -f ${PREFIX}/bin/Hyprland ${PREFIX}/bin/hyprland if [ ! -f ${PREFIX}/share/wayland-sessions/hyprland.desktop ]; then cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions; fi mkdir -p ${PREFIX}/share/hyprland cp ./assets/wall_* ${PREFIX}/share/hyprland