From 73a6123341d00da44fa52928552cdb0e61064813 Mon Sep 17 00:00:00 2001 From: rask24 <70057885+rask24@users.noreply.github.com> Date: Tue, 20 Feb 2024 19:19:58 +0900 Subject: [PATCH] fix libft rule (#48) --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7575916..b66bbde 100644 --- a/Makefile +++ b/Makefile @@ -161,11 +161,9 @@ $(BUILD_DIR)/%.o: $(SRC_DIR)/%.c -include $(DEP) -$(LIBFT): $(LIBFT_DIR) - @make -C $(@D) - -$(LIBFT_DIR): +$(LIBFT): @git submodule update --init + @make -C $(@D) .PHONY: clean clean: