Updated Makefile

Fixed bugs with cmake commands using '-S .' instead of the git repos.
This commit is contained in:
Ethan Smith-Coss 2024-06-18 20:32:42 +01:00
parent 80e505e834
commit b87a21601b
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -49,7 +49,7 @@ __Hyprlang = $(INC_SYSTEM_PATH)/hyprlang.hpp
$(__Hyprlang): $(__Hyprutils)
# built using cmake
$(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./hyprlang/build
-DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprlang -B ./hyprlang/build
$(CMAKE) --build ./hyprlang/build --config Release --target hyprlang \
-j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
# At this point install hyprlang since it is a library other apps need
@ -63,7 +63,7 @@ hyprlock:
__Hyprlock = $(BIN_SYSTEM_PATH)/hyprlock
$(__Hyprlock): $(__Hyprlang)
$(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \
-S . -B ./hyprlock/build
-S ./hyprlock -B ./hyprlock/build
$(CMAKE) --build ./hyprlock/build --config Release --target hyprlock \
-j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
@ -74,7 +74,7 @@ hyprpaper:
__Hyprpaper = $(BIN_SYSTEM_PATH)/hyprpaper
hyprpaper: $(__Hyprlang)
$(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./hyprpaper/build
-DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprpaper -B ./hyprpaper/build
$(CMAKE) --build ./hyprpaper/build --config Release --target hyprpaper \
-j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`