This commit is contained in:
Timo Schmidt 2023-04-01 22:17:04 +02:00
parent 50c900d3dc
commit c8eeb1dc65
1 changed files with 14 additions and 12 deletions

View File

@ -4,14 +4,15 @@ SRC = main.c \
argparse.c \ argparse.c \
dictparse.c \ dictparse.c \
ft_linked_list.c \ ft_linked_list.c \
printing.c printing.c \
HEADERS = ft_strlib.h \ HEADERS = ft_strlib.h \
ft_io.h \ ft_io.h \
colors.h \ colors.h \
argparse.h \ argparse.h \
dictparse.h \ dictparse.h \
ft_linked_list.h \ ft_linked_list.h \
printing.h printing.h \
OBJDIR = obj OBJDIR = obj
INCDIR = include INCDIR = include
@ -64,17 +65,18 @@ tests: test
test: re run fclean test: re run fclean
SUCCESS_MSG = printf '\n\033[102;30m --- %s --- \033[m\n\n' "Test passed!" 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!" 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!" 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!" FAIL_MSG_VALG = printf '\n\033[101;37m --- %s --- \033[m\n\n' "Valgrind Failed!"
SUCCESS = && $(SUCCESS_MSG) || $(FAIL_MSG) SUCCESS = && $(SUCCESS_MSG) || $(FAIL_MSG)
SUCCESS_VALG = && $(SUCCESS_MSG_VALG) || $(FAIL_MSG_VALG) SUCCESS_VALG = && $(SUCCESS_MSG_VALG) || $(FAIL_MSG_VALG)
FAIL = && $(FAIL_MSG) || $(SUCCESS_MSG) FAIL = && $(FAIL_MSG) || $(SUCCESS_MSG)
VALGRIND = valgrind --leak-check=full --error-exitcode=1 VALGRIND = valgrind --leak-check=full --error-exitcode=1
YLW = :; YLW = : ;
CYN = :; CYN = : ;
CLR_RST = && :  CLR_RST = && : 
run: run:
@clear @clear
$(YLW) ./$(NAME) $(CLR_RST) $(SUCCESS) $(YLW) ./$(NAME) $(CLR_RST) $(SUCCESS)