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 \
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)