From 177290fdf2d5ade31cf84a0ffb2a03dcf9bfb2ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ji=C5=99i=C5=A1t=C4=9B?= Date: Sun, 14 Jan 2024 17:42:57 +0100 Subject: [PATCH] Add Libft/Makefile as dependency for %.c compilation Add Libft/Makefile as an order-only-prerequisite for %.c files so that after cloning the repository the Libft submodule is downloaded. This is needed because without the Libft headers some files cannot be compiled. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4267c89..25bf565 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ else $(MAKE) -C Libft endif -%.o : %.c +%.o : %.c | Libft/Makefile $(CC) $(CFLAGS) -o $@ -c $< $(INCLUDE) %/Makefile : -- 2.30.2