diff --git a/Makefile b/Makefile index bd48011..9bf78e3 100644 --- a/Makefile +++ b/Makefile @@ -22,11 +22,13 @@ $(__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 __Hypercursor = $(INC_SYSTEM_PATH)/hyprcursor.hpp $(__Hypercursor): $(__Hyperlang) + @[[ -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 \ @@ -36,11 +38,13 @@ $(__Hypercursor): $(__Hyperlang) # Build hyprutils if the .hpp file is not installed # Library for hyprwm +.PHONY : hyprutils hyprutils: git submodule init git submodule update --remote hyprutils __Hyprutils = $(INC_SYSTEM_PATH)/hyprutils.hpp $(__Hyprutils): hyprutils + @[[ -z "$(ls -A hyprutils)" ]] && $(MAKE) 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 \ @@ -49,11 +53,13 @@ $(__Hyprutils): hyprutils # Build hyprlang if the .hpp file is not installed # Library for hyprwm +.PHONY : hyprlang hyprlang: git submodule init git submodule update --remote hyprlang __Hyprlang = $(INC_SYSTEM_PATH)/hyprlang.hpp $(__Hyprlang): $(__Hyprutils) + @[[ -z "$(ls -A hyprlang)" ]] && $(MAKE) hyprlang # built using cmake $(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprlang -B ./hyprlang/build