From 83ef951c215059923cae1b88691389dbaa79bea0 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 24 Aug 2022 18:47:35 +0300 Subject: [PATCH] add clean install for those who build from source --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Makefile b/Makefile index 514952de..b40a033d 100644 --- a/Makefile +++ b/Makefile @@ -137,6 +137,26 @@ install: cp ./assets/wall_8K.png ${PREFIX}/share/hyprland install -Dm644 -t ${PREFIX}/share/man/man1 ./docs/*.1 + +claninstall: + make clear + make fixwlr + cd ./subprojects/wlroots && meson build/ --buildtype=release && ninja -C build/ && cp ./build/libwlroots.so.11032 /usr/lib/ && cd ../.. + make protocols + make release + cd hyprctl && make all && cd .. + + mkdir -p /usr/share/wayland-sessions + mkdir -p ${PREFIX}/bin + cp ./build/Hyprland ${PREFIX}/bin + cp ./hyprctl/hyprctl ${PREFIX}/bin + mkdir -p ${PREFIX}/share/hyprland + cp ./assets/wall_2K.png ${PREFIX}/share/hyprland + cp ./assets/wall_4K.png ${PREFIX}/share/hyprland + cp ./assets/wall_8K.png ${PREFIX}/share/hyprland + + install -Dm644 -t ${PREFIX}/share/man/man1 ./docs/*.1 + uninstall: rm -f ${PREFIX}/share/wayland-sessions/hyprland.desktop