Makefile
This commit is contained in:
parent
50c900d3dc
commit
c8eeb1dc65
|
@ -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 = :[33m;
|
||||
CYN = :[36m;
|
||||
CLR_RST = && : [m
|
||||
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 = : [33m;
|
||||
CYN = : [36m;
|
||||
CLR_RST = && : [m
|
||||
|
||||
run:
|
||||
@clear
|
||||
$(YLW) ./$(NAME) $(CLR_RST) $(SUCCESS)
|
||||
|
|
Loading…
Reference in New Issue