diff --git a/ex00/Makefile b/ex00/Makefile index a54884c..98d0361 100644 --- a/ex00/Makefile +++ b/ex00/Makefile @@ -4,14 +4,15 @@ SRC = main.c \ argparse.c \ dictparse.c \ ft_linked_list.c \ - printing.c + printing.c \ + HEADERS = ft_strlib.h \ ft_io.h \ colors.h \ argparse.h \ dictparse.h \ ft_linked_list.h \ - printing.h + printing.h \ OBJDIR = obj INCDIR = include @@ -64,17 +65,18 @@ tests: test test: re run fclean -SUCCESS_MSG = printf '\n\033[102;30m --- %s --- \033[m\n\n' "Test passed!" -FAIL_MSG = printf '\n\033[101;37m --- %s --- \033[m\n\n' "Test failed!" +SUCCESS_MSG = printf '\n\033[102;30m --- %s --- \033[m\n\n' "Test passed!" +FAIL_MSG = printf '\n\033[101;37m --- %s --- \033[m\n\n' "Test failed!" SUCCESS_MSG_VALG = printf '\n\033[102;30m --- %s --- \033[m\n\n' "Valgrind ran without errors!" -FAIL_MSG_VALG = printf '\n\033[101;37m --- %s --- \033[m\n\n' "Valgrind Failed!" -SUCCESS = && $(SUCCESS_MSG) || $(FAIL_MSG) -SUCCESS_VALG = && $(SUCCESS_MSG_VALG) || $(FAIL_MSG_VALG) -FAIL = && $(FAIL_MSG) || $(SUCCESS_MSG) -VALGRIND = valgrind --leak-check=full --error-exitcode=1 -YLW = :; -CYN = :; -CLR_RST = && :  +FAIL_MSG_VALG = printf '\n\033[101;37m --- %s --- \033[m\n\n' "Valgrind Failed!" +SUCCESS = && $(SUCCESS_MSG) || $(FAIL_MSG) +SUCCESS_VALG = && $(SUCCESS_MSG_VALG) || $(FAIL_MSG_VALG) +FAIL = && $(FAIL_MSG) || $(SUCCESS_MSG) +VALGRIND = valgrind --leak-check=full --error-exitcode=1 +YLW = : ; +CYN = : ; +CLR_RST = && :  + run: @clear $(YLW) ./$(NAME) $(CLR_RST) $(SUCCESS)