From: Lukáš Jiřiště Date: Sun, 14 Jan 2024 16:42:57 +0000 (+0100) Subject: Add Libft/Makefile as dependency for %.c compilation X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=177290fdf2d5ade31cf84a0ffb2a03dcf9bfb2ce;p=FET_sim.git 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. --- 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 :