From ba8dda071ea42a7d2647e7eb4be0e7276e86e3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Sun, 28 Sep 2025 20:28:01 +0200 Subject: [PATCH] feat: add fclean and re target --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 581e10a..0352608 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ .DEFAULT_GOAL := all SRC = $(wildcard *.c) -LIB = libft.a +LIB = libft.a # <--- NAME STATIC = ar -rcs CC = clang OBJ = $(SRC:.c=.o) @@ -18,4 +18,9 @@ $(LIB): $(OBJ) # <--- OBJ will run $.o: %.c pattern all: $(LIB) clean: - rm -f $(OBJ) $(LIB) + rm -f $(OBJ) + +fclean: clean + rm -f $(LIB) + +re: fclean $(LIB)