Updated Makefile

Added recipes to call git on libraries
This commit is contained in:
Ethan Smith-Coss 2024-06-18 20:58:46 +01:00
parent 3046e1be00
commit f8773d765d
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B

View File

@ -22,11 +22,13 @@ $(__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: hyprcursor:
git submodule init git submodule init
git submodule update --remote hyprcursor git submodule update --remote hyprcursor
__Hypercursor = $(INC_SYSTEM_PATH)/hyprcursor.hpp __Hypercursor = $(INC_SYSTEM_PATH)/hyprcursor.hpp
$(__Hypercursor): $(__Hyperlang) $(__Hypercursor): $(__Hyperlang)
@[[ -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 \
@ -36,11 +38,13 @@ $(__Hypercursor): $(__Hyperlang)
# Build hyprutils if the .hpp file is not installed # Build hyprutils if the .hpp file is not installed
# Library for hyprwm # Library for hyprwm
.PHONY : hyprutils
hyprutils: hyprutils:
git submodule init git submodule init
git submodule update --remote hyprutils git submodule update --remote hyprutils
__Hyprutils = $(INC_SYSTEM_PATH)/hyprutils.hpp __Hyprutils = $(INC_SYSTEM_PATH)/hyprutils.hpp
$(__Hyprutils): hyprutils $(__Hyprutils): hyprutils
@[[ -z "$(ls -A hyprutils)" ]] && $(MAKE) 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 -j`nproc \
@ -49,11 +53,13 @@ $(__Hyprutils): hyprutils
# Build hyprlang if the .hpp file is not installed # Build hyprlang if the .hpp file is not installed
# Library for hyprwm # Library for hyprwm
.PHONY : hyprlang
hyprlang: hyprlang:
git submodule init git submodule init
git submodule update --remote hyprlang git submodule update --remote hyprlang
__Hyprlang = $(INC_SYSTEM_PATH)/hyprlang.hpp __Hyprlang = $(INC_SYSTEM_PATH)/hyprlang.hpp
$(__Hyprlang): $(__Hyprutils) $(__Hyprlang): $(__Hyprutils)
@[[ -z "$(ls -A hyprlang)" ]] && $(MAKE) hyprlang
# built using cmake # built using cmake
$(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 ./hyprlang -B ./hyprlang/build -DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprlang -B ./hyprlang/build