From 5d3821beaaaeb6f357be3a40d22b3d8cdd5cd1da Mon Sep 17 00:00:00 2001 From: whaffman Date: Thu, 9 Oct 2025 21:16:11 +0200 Subject: [PATCH] build all targets parallel --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 44c7f76..dc3d30f 100644 --- a/Makefile +++ b/Makefile @@ -39,12 +39,12 @@ release: $(BUILD_DIR) debug: $(BUILD_DIR) $(CMAKE) -B $(BUILD_DIR) $(CMAKE_FLAGS) -DCMAKE_BUILD_TYPE=Debug - $(CMAKE_BUILD) $(BUILD_DIR) --target webserv + $(CMAKE_BUILD) $(BUILD_DIR) --target webserv --parallel @echo "$(CURRENT_ENV)" > $(BUILD_DIR)/.build-env asan: $(BUILD_DIR) $(CMAKE) -B $(BUILD_DIR) $(CMAKE_FLAGS) -DCMAKE_BUILD_TYPE=ASAN - $(CMAKE_BUILD) $(BUILD_DIR) --target webserv + $(CMAKE_BUILD) $(BUILD_DIR) --target webserv --parallel @echo "$(CURRENT_ENV)" > $(BUILD_DIR)/.build-env run: run_release @@ -74,17 +74,17 @@ re: fclean all # Test targets test: release @echo "Building and running tests..." - $(CMAKE_BUILD) $(BUILD_DIR) --target webserv_tests + $(CMAKE_BUILD) $(BUILD_DIR) --target webserv_tests --parallel cd $(BUILD_DIR) && ctest --output-on-failure test_verbose: release @echo "Building and running tests with verbose output..." - $(CMAKE_BUILD) $(BUILD_DIR) --target webserv_tests + $(CMAKE_BUILD) $(BUILD_DIR) --target webserv_tests --parallel cd $(BUILD_DIR) && ctest --verbose test_build: release @echo "Building tests only..." - $(CMAKE_BUILD) $(BUILD_DIR) --target webserv_tests + $(CMAKE_BUILD) $(BUILD_DIR) --target webserv_tests --parallel # Coverage targets coverage: