Repair Makefile so it correctly initializes Libft
authorLukas Jiriste <ljiriste@student.42prague.com>
Tue, 23 Jan 2024 07:58:03 +0000 (08:58 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Tue, 23 Jan 2024 07:58:03 +0000 (08:58 +0100)
Makefile

index e79a2124f4e907493837dec0ed9d4ab5a09ac171..e71a430e28c1492f27c5f307c47b601be3b98635 100644 (file)
--- 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