From: Lukas Jiriste Date: Thu, 29 Feb 2024 09:38:34 +0000 (+0100) Subject: Add subprojects' inc dir as compilation prerequisite X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=fc2b440ce4d103ee234dfc0325635604b3048d97;p=42%2Fpush_swap.git Add subprojects' inc dir as compilation prerequisite This forces make to download the subproject headers that are necessary for compiling the source files to object files. --- diff --git a/Makefile b/Makefile index 037c673..554bc7d 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ else $(MAKE) -C Libft endif -%.o : %.c +%.o : %.c | $(SUBINCDIR) $(CC) $(CFLAGS) -o $@ -c $< $(INCLUDE) %/inc :