build all targets parallel

This commit is contained in:
whaffman 2025-10-09 21:16:11 +02:00
parent 20ae0e03dd
commit 5d3821beaa

View File

@ -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: