aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrszyma <[email protected]>2024-01-04 10:20:17 +0100
committerGitHub <[email protected]>2024-01-04 10:20:17 +0100
commit4d6d662c67786c86647cf41b5b20d9c0b418dbb3 (patch)
treefd4092c8fc6b2d65219a7a33b43d3139c2d90613
parent1512b81126dd115f089fd21244692d92034c78f8 (diff)
downloadHyprland-4d6d662c67786c86647cf41b5b20d9c0b418dbb3.tar.gz
Hyprland-4d6d662c67786c86647cf41b5b20d9c0b418dbb3.zip
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 ```
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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