Update Makefile: modify default target to only include release and add run target
This commit is contained in:
parent
94653db136
commit
e8f1c9a929
6
Makefile
6
Makefile
@ -6,7 +6,7 @@ CMAKE_FLAGS = -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
CONFIG_FILE = config/default.conf
|
||||
|
||||
# Default target
|
||||
all: release debug asan
|
||||
all: release
|
||||
|
||||
# Configure CMake if build directory doesn't exist
|
||||
$(BUILD_DIR):
|
||||
@ -25,6 +25,8 @@ asan: $(BUILD_DIR)
|
||||
$(CMAKE) -B $(BUILD_DIR) $(CMAKE_FLAGS) -DCMAKE_BUILD_TYPE=ASAN
|
||||
$(CMAKE_BUILD) $(BUILD_DIR) --target webserv
|
||||
|
||||
run: run_release
|
||||
|
||||
# Run targets
|
||||
run_release: release
|
||||
./$(BUILD_DIR)/webserv $(CONFIG_FILE)
|
||||
@ -48,4 +50,4 @@ fclean:
|
||||
re: fclean all
|
||||
|
||||
# Mark targets as phony
|
||||
.PHONY: all release debug asan run_release run_debug run_asan clean fclean re
|
||||
.PHONY: all release debug asan run run_release run_debug run_asan clean fclean re
|
||||
|
||||
Loading…
Reference in New Issue
Block a user