3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-08-18 02:51:23 +00:00

makefile: smol Makefile QoL patches (#15491)

This commit is contained in:
Lucas Ritzdorf
2026-07-22 05:54:58 -06:00
committed by GitHub
parent ca90dfb0e7
commit eb21dae6fb

View File

@ -97,15 +97,17 @@ asan:
format-check: format-check:
@find src hyprctl hyprpm start tests hyprtester -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) \ @find src hyprctl hyprpm start tests hyprtester -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) \
! -path "src/render/shaders/Shaders.hpp" \ ! -path "src/render/shaders/Shaders.hpp" \
! -path "hyprctl/hw-protocols/*" | \ ! -path "hyprctl/hw-protocols/*" \
xargs clang-format --dry-run --Werror ! -path "hyprtester/protocols/*" \
| xargs clang-format --dry-run --Werror
format-fix: format-fix:
@find src hyprctl hyprpm start tests hyprtester -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) \ @find src hyprctl hyprpm start tests hyprtester -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) \
! -path "src/render/shaders/Shaders.hpp" \ ! -path "src/render/shaders/Shaders.hpp" \
! -path "hyprctl/hw-protocols/*" | \ ! -path "hyprctl/hw-protocols/*" \
xargs clang-format -i ! -path "hyprtester/protocols/*" \
| xargs clang-format -i
test: test:
$(MAKE) debug $(MAKE) debug
./build/hyprtester/hyprtester -c hyprtester/test.lua -b ./build/Hyprland -p hyprtester/plugin/hyprtestplugin.so ./build/hyprtester/hyprtester -c hyprtester/test.lua -b ./build/Hyprland -p hyprtester/plugin/hyprtestplugin.so $(TESTS)