From 0650802fe061b0561373424dda45931148b3c485 Mon Sep 17 00:00:00 2001 From: lohhiiccc Date: Fri, 12 Jun 2026 14:41:18 +0200 Subject: [PATCH] feat: re and fclean rules in Makefile --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index df62a6b..5e636aa 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ SRCS=$(SRC_DIR)/ft_strlen.asm \ OBJS=$(patsubst $(SRC_DIR)/%.asm,$(OBJ_DIR)/%.o,$(SRCS)) DEPS=$(OBJS:.o=.d) -.PHONY: all clean dirs static shared +.PHONY: all clean fclean re dirs static shared all: dirs $(STATIC_LIB) $(SHARED_LIB) @@ -44,6 +44,13 @@ test: test.c $(STATIC_LIB) $(CC) $(CFLAGS) test.c -L. -l$(LIB_NAME) -o test -Wl,-rpath=. clean: - rm -rf $(OBJ_DIR) $(STATIC_LIB) $(SHARED_LIB) test + $(RM) -rf $(OBJ_DIR) + +fclean: clean + $(RM) $(STATIC_LIB) $(SHARED_LIB) test + +re: fclean + $(MAKE) all + -include $(DEPS)