From 97e809a3fc9708878c3339221dfc5934b32a9263 Mon Sep 17 00:00:00 2001 From: hugodu69 Date: Tue, 23 Jun 2020 18:15:39 +0200 Subject: [PATCH] ajout fclean libft dans make fclean et color green pour jackpot --- Makefile | 4 ++-- main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1b2b6b6..9264129 100644 --- a/Makefile +++ b/Makefile @@ -46,9 +46,11 @@ $(ODIR)/%.o: %.c $(CC) $(CFLAGS) -c -o $@ $< clean: + make clean -C $(LDIR) /bin/rm -rf $(ODIR) fclean: clean + make fclean -C $(LDIR) /bin/rm -f $(NAME) re: fclean all @@ -61,8 +63,6 @@ re: fclean all lib: make -C $(LDIR) -cleanlib: lib - make fclean -C $(LDIR) main: $(ODIR) $(OBJS) $(DEPS) $(CC) $(CFLAGS) $(OBJS) $(LFLAGS) main.c fsanitize: $(ODIR) $(OBJS) $(DEPS) diff --git a/main.c b/main.c index 7311847..43db9d1 100644 --- a/main.c +++ b/main.c @@ -129,7 +129,7 @@ int ft_compare(int fd1, int fd2, int *error, int output) ft_putstr("\033[91mHO HO..\033[0m"); return (0); } - ft_putstr("JACKPOT"); + ft_putstr("\033[92mJACKPOT\033[0m"); return (1); }