From: Lukas Jiriste Date: Tue, 23 Jan 2024 07:58:03 +0000 (+0100) Subject: Repair Makefile so it correctly initializes Libft X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=43f8d4da7e2412ac54d3c1fcfe4890437724a02e;p=42%2Fminitalk.git Repair Makefile so it correctly initializes Libft --- 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