ajout fclean libft dans make fclean et color green pour jackpot

This commit is contained in:
hugodu69
2020-06-23 18:15:39 +02:00
parent baa6d8fb86
commit 97e809a3fc
2 changed files with 3 additions and 3 deletions

View File

@@ -46,9 +46,11 @@ $(ODIR)/%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<
clean: clean:
make clean -C $(LDIR)
/bin/rm -rf $(ODIR) /bin/rm -rf $(ODIR)
fclean: clean fclean: clean
make fclean -C $(LDIR)
/bin/rm -f $(NAME) /bin/rm -f $(NAME)
re: fclean all re: fclean all
@@ -61,8 +63,6 @@ re: fclean all
lib: lib:
make -C $(LDIR) make -C $(LDIR)
cleanlib: lib
make fclean -C $(LDIR)
main: $(ODIR) $(OBJS) $(DEPS) main: $(ODIR) $(OBJS) $(DEPS)
$(CC) $(CFLAGS) $(OBJS) $(LFLAGS) main.c $(CC) $(CFLAGS) $(OBJS) $(LFLAGS) main.c
fsanitize: $(ODIR) $(OBJS) $(DEPS) fsanitize: $(ODIR) $(OBJS) $(DEPS)

2
main.c
View File

@@ -129,7 +129,7 @@ int ft_compare(int fd1, int fd2, int *error, int output)
ft_putstr("\033[91mHO HO..\033[0m"); ft_putstr("\033[91mHO HO..\033[0m");
return (0); return (0);
} }
ft_putstr("JACKPOT"); ft_putstr("\033[92mJACKPOT\033[0m");
return (1); return (1);
} }