Updated Makefile

This commit is contained in:
Ethan Smith-Coss 2024-06-20 22:53:44 +01:00
parent fda034074a
commit 5b9d3e6fa1
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -21,13 +21,8 @@ $(__Tomlplusplus): tomlplusplus
# Build hyprcursor if the .hpp file is not installed (required hyprlang) # Build hyprcursor if the .hpp file is not installed (required hyprlang)
# Library for hyprwm # Library for hyprwm
.PHONY : hyprcursor
hyprcursor:
git submodule init
git submodule update --remote hyprcursor
__Hyprcursor = $(INCLUDE_SYS_PATH)/hyprcursor.hpp __Hyprcursor = $(INCLUDE_SYS_PATH)/hyprcursor.hpp
$(__Hyprcursor): $(__Tomlplusplus) $(__Hyprlang) $(__Hyprcursor): $(__Tomlplusplus) $(__Hyprlang)
@[[ -z "$(ls -A hyprcursor)" ]] && $(MAKE) hyprcursor
$(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \ $(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprcursor -B ./hyprcursor/build -DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprcursor -B ./hyprcursor/build
$(CMAKE) --build ./hyprcursor/build --config Release --target all \ $(CMAKE) --build ./hyprcursor/build --config Release --target all \
@ -40,9 +35,9 @@ $(__Hyprcursor): $(__Tomlplusplus) $(__Hyprlang)
__Hyprutils = $(INCLUDE_SYS_PATH)/hyprutils __Hyprutils = $(INCLUDE_SYS_PATH)/hyprutils
$(__Hyprutils): $(__Hyprutils):
$(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \ $(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr -S hyprutils -B ./hyprutils/build -DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprutils -B ./hyprutils/build
$(CMAKE) --build ./hyprutils/build --config Release --target all -j`nproc \ $(CMAKE) --build ./hyprutils/build --config Release --target all \
2>/dev/null || getconf _NPROCESSORS_CONF` -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
sudo $(CMAKE) --install hyprutils/build sudo $(CMAKE) --install hyprutils/build
# Build hyprlang if the .hpp file is not installed # Build hyprlang if the .hpp file is not installed