feat(09): starting the parsing of the file

This commit is contained in:
Raphael 2025-04-11 11:48:28 +02:00
parent 1cf3760638
commit 08b6535d4a
3 changed files with 46 additions and 11 deletions

View file

@ -6,7 +6,7 @@
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2025/04/08 12:15:25 by rparodi ### ########.fr #
# Updated: 2025/04/11 11:23:29 by rparodi ### ########.fr #
# #
# **************************************************************************** #
@ -49,11 +49,13 @@ END = \033[0m
# All (make all)
all: header $(NAME) footer
# Bonus (make bonus)
bonus: header $(OBJ) footer
@mkdir -p $(OBJDIRNAME)
@printf '$(GREY) Creating $(END)$(GREEN)$(OBJDIRNAME)$(END)\n'
@$(CXX) $(CXXFLAGS) -o $(NAME) $(OBJ)
get_db:
@rm -rf ./cpp_09.tgz ./cpp_09 ./data.csv &> /dev/null
@wget https://cdn.intra.42.fr/document/document/32672/cpp_09.tgz &> /dev/null
@tar -xvf cpp_09.tgz &> /dev/null
@cp ./cpp_09/data.csv . &> /dev/null
@rm -rf ./cpp_09.tgz ./cpp_09 &> /dev/null
@printf '$(GREY)Downloaded $(END)$(GREEN)data.csv$(END)\n'
# Clean (make clean)
clean:
@ -64,6 +66,7 @@ clean:
# Clean (make fclean)
fclean: clean
@printf '$(GREY) Removing $(END)$(RED)Program$(END)\n'
@$(RM) ./data.csv
@$(RM) $(NAME)
@echo ""
@ -123,5 +126,5 @@ clangd:
> .clangd
# Phony
.PHONY: all bonus clean fclean re clangd
.PHONY: all clean fclean re get_db clangd
-include ${OBJ:.o=.d}