build all targets parallel
This commit is contained in:
parent
20ae0e03dd
commit
5d3821beaa
10
Makefile
10
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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user