From 43f8d4da7e2412ac54d3c1fcfe4890437724a02e Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Tue, 23 Jan 2024 08:58:03 +0100 Subject: [PATCH] Repair Makefile so it correctly initializes Libft --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e79a212..e71a430 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,9 @@ server : $(SERVOBJECTS) Libft/libft.a client : $(CLIOBJECTS) Libft/libft.a $(CC) $(CFLAGS) -o $@ $^ -Libft/libft.a : +# Libft is not dependant on all subprojects (only itself) +# but this shouldn't be a problem, as the project needs to download all anyway +Libft/libft.a : | $(SUBINCDIR) ifneq (,$(findstring debug, $(MAKECMDGOALS))) $(MAKE) -C Libft debug else -- 2.30.2