From c2316b6eaf206a79ca2a6d6c49c87e741fc96df0 Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 5 Jun 2025 19:31:43 +0200 Subject: [PATCH] build(debug/run): improuved some stuff --- cpp09/ex00/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cpp09/ex00/Makefile b/cpp09/ex00/Makefile index 5e4816e..90dde08 100644 --- a/cpp09/ex00/Makefile +++ b/cpp09/ex00/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2025/06/05 18:48:32 by rparodi ### ########.fr # +# Updated: 2025/06/05 19:09:44 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -86,6 +86,9 @@ fclean: clean # Restart (make re) re: header fclean all +run: all + @./$(NAME) ./input.txt + # Dependences for all $(NAME): $(OBJ) @mkdir -p $(OBJDIRNAME) @@ -114,7 +117,7 @@ header: @printf '$(GOLD) ****** $(END)\n' @printf '$(GREY) Made by rparodi$(END)\n\n' -debug: CPPFLAGS += -D DEBUG=1 +debug: CPPFLAGS += -D DEBUG=1 -g debug: re # Footer @@ -147,5 +150,5 @@ clangd: @printf '$(GREY) Now parsing settings is set in $(END)$(GREEN)./.clangd$(END)\n' # Phony -.PHONY: all clean fclean re get_db clangd +.PHONY: all clean fclean re get_db clangd run -include ${OBJ:.o=.d}