Updated Makefile

Added submodule command for libxcb-errors.
Changed make recipe back to '-C' instead of '-f'.
Made Hyprland recursive.
This commit is contained in:
Ethan Smith-Coss 2024-06-18 23:20:22 +01:00
parent 747f51a80e
commit 4a88fcc4d3
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -91,6 +91,7 @@ $(__Libxcb-errors):
@echo "Building and install library libxcb-errors..." @echo "Building and install library libxcb-errors..."
@[[ -z "$(ls -A libxcb-errors)" ]] && $(MAKE) libxcb-errors @[[ -z "$(ls -A libxcb-errors)" ]] && $(MAKE) libxcb-errors
cd libxcb-errors && { \ cd libxcb-errors && { \
git submodule update --init ; \
/bin/sh autogen.sh ; \ /bin/sh autogen.sh ; \
/bin/sh configure --prefix=/usr ; \ /bin/sh configure --prefix=/usr ; \
make && sudo make install ; } make && sudo make install ; }
@ -106,7 +107,7 @@ __Hyprland = Hyprland/build
$(__Hyprland): $(__Hyperlang) $(__Hypercursor) $(__Hyprwayland-scanner) \ $(__Hyprland): $(__Hyperlang) $(__Hypercursor) $(__Hyprwayland-scanner) \
$(__Libxcb-error) $(__Libxcb-error)
@[[ -z "$(ls -A Hyprland)" ]] && $(MAKE) Hyprland @[[ -z "$(ls -A Hyprland)" ]] && $(MAKE) Hyprland
$(MAKE) -f Hyprland/Makefile all sudo $(MAKE) -C Hyprland all
# Build hyprlock if it's not installed on the system # Build hyprlock if it's not installed on the system
.PHONY : hyprlock .PHONY : hyprlock
@ -125,7 +126,7 @@ $(__Hyprlock): $(__Hyprlang)
.PHONY : hyprpaper .PHONY : hyprpaper
hyprpaper: hyprpaper:
git submodule init git submodule init
git submodule update --remote hyprpaper git submodule update --init --recursive --remote hyprpaper
__Hyprpaper = hyprpaper/build __Hyprpaper = hyprpaper/build
$(__Hyprpaper): $(__Hyprlang) $(__Hyprpaper): $(__Hyprlang)
@[[ -z "$(ls -A hyprpaper)" ]] && $(MAKE) hyprpaper @[[ -z "$(ls -A hyprpaper)" ]] && $(MAKE) hyprpaper