From 651eda8a3b24b179edd0f04c1a65985878ae28bf Mon Sep 17 00:00:00 2001 From: rask24 Date: Tue, 20 Feb 2024 19:13:23 +0900 Subject: [PATCH] fix libft rule --- 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: