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