aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-06-25 12:13:24 +0200
committervaxerski <[email protected]>2022-06-25 12:13:24 +0200
commit54e8e786122ae5e8d87a49d19eb2e8c57eb06e6b (patch)
tree34a7877a07c93b6cfdd12dae6a620467f512b210
parentb46f45befab6e2aa6daba76ec04cec4286eec56b (diff)
downloadHyprland-54e8e786122ae5e8d87a49d19eb2e8c57eb06e6b.tar.gz
Hyprland-54e8e786122ae5e8d87a49d19eb2e8c57eb06e6b.zip
save wlroots and restore
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
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