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 $@ $<
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)

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");
return (0);
}
ft_putstr("JACKPOT");
ft_putstr("\033[92mJACKPOT\033[0m");
return (1);
}