summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-31 10:43:41 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-31 10:43:41 +0200
commit2e7586e841f8f964f2e919c47bab6cb22088e84f (patch)
tree1579b4aa3443a637e2bd08ecf04270f2d86bd93e /Makefile
parentf6ba9909d64f8986efd7833252f9444175aa0fac (diff)
fix up config and includes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b185eb90..08a17dfb 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,7 @@ clear:
rm -rf build
rm -f *.o *-protocol.h *-protocol.c
rm -f ./hyprctl/hyprctl
+ rm -rf ./wlroots/build
all:
make config
@@ -113,4 +114,16 @@ uninstall:
rm -f ${PREFIX}/bin/hyprctl
rm -rf ${PREFIX}/share/hyprland
-config: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o wlr-screencopy-unstable-v1-protocol.o idle-protocol.o ext-workspace-unstable-v1-protocol.o pointer-constraints-unstable-v1-protocol.o
+protocols: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o wlr-screencopy-unstable-v1-protocol.o idle-protocol.o ext-workspace-unstable-v1-protocol.o pointer-constraints-unstable-v1-protocol.o
+
+config:
+ make protocols
+
+ sed -i -E 's/(soversion = 11)([^032]|$$)/soversion = 11032/g' ./wlroots/meson.build
+
+ rm -rf ./wlroots/build
+
+ cd wlroots && meson ./build --prefix=/usr --buildtype=release
+ cd wlroots && ninja -C build/
+
+ cd wlroots && sudo cp ./build/libwlroots.so.11032 /usr/lib/