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)
|
debug: $(BUILD_DIR)
|
||||||
$(CMAKE) -B $(BUILD_DIR) $(CMAKE_FLAGS) -DCMAKE_BUILD_TYPE=Debug
|
$(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
|
@echo "$(CURRENT_ENV)" > $(BUILD_DIR)/.build-env
|
||||||
|
|
||||||
asan: $(BUILD_DIR)
|
asan: $(BUILD_DIR)
|
||||||
$(CMAKE) -B $(BUILD_DIR) $(CMAKE_FLAGS) -DCMAKE_BUILD_TYPE=ASAN
|
$(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
|
@echo "$(CURRENT_ENV)" > $(BUILD_DIR)/.build-env
|
||||||
|
|
||||||
run: run_release
|
run: run_release
|
||||||
@ -74,17 +74,17 @@ re: fclean all
|
|||||||
# Test targets
|
# Test targets
|
||||||
test: release
|
test: release
|
||||||
@echo "Building and running tests..."
|
@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
|
cd $(BUILD_DIR) && ctest --output-on-failure
|
||||||
|
|
||||||
test_verbose: release
|
test_verbose: release
|
||||||
@echo "Building and running tests with verbose output..."
|
@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
|
cd $(BUILD_DIR) && ctest --verbose
|
||||||
|
|
||||||
test_build: release
|
test_build: release
|
||||||
@echo "Building tests only..."
|
@echo "Building tests only..."
|
||||||
$(CMAKE_BUILD) $(BUILD_DIR) --target webserv_tests
|
$(CMAKE_BUILD) $(BUILD_DIR) --target webserv_tests --parallel
|
||||||
|
|
||||||
# Coverage targets
|
# Coverage targets
|
||||||
coverage:
|
coverage:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user