Changed target dependencies and order

This commit is contained in:
Ethan Smith-Coss 2024-11-17 12:50:38 +00:00
parent 13e8733cc7
commit 503d0686a6
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -46,7 +46,7 @@ $(__Hyprutils): hyprutils
# Build hyprlang if the .hpp file is not installed
# Library for hyprwm
__Hyprlang = $(INCLUDE_SYS_PATH)/hyprlang.hpp
$(__Hyprlang): $(__Hyprutils) $(__Hyprwayland-scanner) hyprlang
$(__Hyprlang): hyprlang
$(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprlang -B ./hyprlang/build
$(CMAKE) --build ./hyprlang/build --config Release --target hyprlang \
@ -76,7 +76,7 @@ $(__Libxcb-errors): libxcb-errors
make && sudo make install ; }
__Aquamarine = $(INCLUDE_SYS_PATH)/aquamarine
$(__Aquamarine): $(__Hyprwayland-scanner) aquamarine
$(__Aquamarine): $(__Hyprwayland-scanner) $(__Hyprutils) aquamarine
$(CMAKE) -DCMAKE_INSTALL_PREFIX=/usr -S ./aquamarine \
-B aquamarine/build
$(CMAKE) --build ./aquamarine/build -j \
@ -88,8 +88,7 @@ $(__Aquamarine): $(__Hyprwayland-scanner) aquamarine
# Build Hyprland if it's not installed on the system
__Hyprland = Hyprland/build/Hyprland
$(__Hyprland): $(__Hyprlang) $(__Hyprcursor) $(__Hyprwayland-scanner) \
$(__Libxcb-errors) $(__Aquamarine)
$(__Hyprland): $(__Hyprcursor) $(__Libxcb-errors) $(__Aquamarine)
@echo "Building Hyprland..."
sudo $(MAKE) -C Hyprland all
@ -126,7 +125,7 @@ submodule update --init --recursive" ; exit 1 ;\
@cd Hyprland/subprojects && git submodule update --init
$(MAKE) build
build: $(__Hyprpaper) $(__Wl_clipboard)/wl-copy $(__Hyprland) $(__Hyprlock)
build: $(__Hyprland) $(__Wl_clipboard)/wl-copy $(__Hyprlock) $(__Hyprpaper)
install: build
@echo "Installing hyprlock..."