feat: add fclean and re target

This commit is contained in:
2025-09-28 20:28:01 +02:00
parent c9994362f7
commit ba8dda071e

View File

@@ -3,7 +3,7 @@
.DEFAULT_GOAL := all .DEFAULT_GOAL := all
SRC = $(wildcard *.c) SRC = $(wildcard *.c)
LIB = libft.a LIB = libft.a # <--- NAME
STATIC = ar -rcs STATIC = ar -rcs
CC = clang CC = clang
OBJ = $(SRC:.c=.o) OBJ = $(SRC:.c=.o)
@@ -18,4 +18,9 @@ $(LIB): $(OBJ) # <--- OBJ will run $.o: %.c pattern
all: $(LIB) all: $(LIB)
clean: clean:
rm -f $(OBJ) $(LIB) rm -f $(OBJ)
fclean: clean
rm -f $(LIB)
re: fclean $(LIB)