diff --git a/Makefile b/Makefile index bb753451..aa3a52f8 100644 --- a/Makefile +++ b/Makefile @@ -107,6 +107,9 @@ all: cd ./hyprctl && make all && cd .. install: + [ ! -d /usr/include/wlr ] || mv /usr/include/wlr /usr/include/wlrBackup + [ ! -f /usr/lib/libwlroots.so ] || mv /usr/lib/libwlroots.so /usr/lib/libwlroots.so.backup + make all mkdir -p ${PREFIX}/share/wayland-sessions cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions/ @@ -118,6 +121,10 @@ install: cp ./assets/wall_4K.png ${PREFIX}/share/hyprland cp ./assets/wall_8K.png ${PREFIX}/share/hyprland + rm -rf /usr/include/wlr + [ ! -d /usr/include/wlrBackup ] || mv /usr/include/wlrBackup /usr/include/wlr + [ ! -f /usr/lib/libwlroots.so.backup ] || mv -f /usr/lib/libwlroots.so.backup /usr/lib/libwlroots.so + uninstall: rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop rm -f ${PREFIX}/bin/Hyprland