From bd8110a77a1e15bfd07b5a3f5a19e908feecf397 Mon Sep 17 00:00:00 2001 From: TheOnePath Date: Tue, 18 Jun 2024 22:57:15 +0100 Subject: [PATCH] Updated Makefile Added build target for libxcb-errors library to build Hyprland --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index d416bda..8e1ebfe 100644 --- a/Makefile +++ b/Makefile @@ -82,6 +82,18 @@ $(__Hyprwayland-scanner): @echo "Installing library hyprwayland-scanner..." sudo $(CMAKE) --install ./hyprwayland-scanner/build +## :@TODO: install libxcb-errors +.PHONY : libxcb-errors +libxcb-errors: + git clone https://gitlab.freedesktop.org/xorg/lib/libxcb-errors.git +__Libxcb-errors = /usr/include/xcb +$(__Libxcb-errors): + @echo "Building and install library libxcb-errors..." + @[[ -z "$(ls -A libxcb-errors)" ]] && $(MAKE) libxcb-errors + cd libxcb-errors && { \ + /bin/sh autogen.sh ; \ + /bin/sh configure --prefix=/usr ; \ + make && sudo make install ; } ### Makefile targets for hyprwm apps ###