diff --git a/Makefile b/Makefile index 68876a8..351efcd 100644 --- a/Makefile +++ b/Makefile @@ -35,9 +35,18 @@ $(__Tomlplusplus): tomlplusplus ninja -C tomlplusplus/build sudo $(MESON) install -C tomlplusplus/build +# Build hyprutils if the .hpp file is not installed +# Library for hyprwm +$(__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` + sudo $(CMAKE) --install hyprutils/build + # Build hyprlang if the .hpp file is not installed # Library for hyprwm -$(__Hyprlang): hyprlang +$(__Hyprlang): $(__Hyprutils) hyprlang $(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprlang -B ./hyprlang/build $(CMAKE) --build ./hyprlang/build --config Release --target hyprlang \ @@ -56,15 +65,6 @@ $(__Hyprcursor): $(__Tomlplusplus) $(__Hyprlang) hyprcursor @echo "Installing library hyprcursor..." sudo $(CMAKE) --install hyprcursor/build -# Build hyprutils if the .hpp file is not installed -# Library for hyprwm -$(__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` - sudo $(CMAKE) --install hyprutils/build - $(__Hyprwayland-scanner): hyprwayland-scanner $(CMAKE) -DCMAKE_INSTALL_PREFIX=/usr -S ./hyprwayland-scanner \ -B hyprwayland-scanner/build