From 85b865d2f9c5a00a0908508146e5d14ddc6a3690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarom=C3=ADr=20Wysoglad?= Date: Thu, 30 May 2024 09:55:50 +0200 Subject: [PATCH] Rebuild obj files on %.h changes (#38) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9ea424f..18f0a8c 100644 --- a/Makefile +++ b/Makefile @@ -64,13 +64,13 @@ image: version-check $(BIN): $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) $(CFLAGS) $(LDLIBS) -$(OBJDIR)/%.o: %.c -$(OBJDIR)/%.o: %.c $(DEPDIR)/%.d +$(OBJDIR)/%.o: %.c %.h +$(OBJDIR)/%.o: %.c $(DEPDIR)/%.d %.h $(PRECOMPILE) $(COMPILE.c) $< $(POSTCOMPILE) -$(OBJDIR)/%.o : %.c $(DEPDIR)/%.d | $(DEPDIR) +$(OBJDIR)/%.o : %.c $(DEPDIR)/%.d %.h | $(DEPDIR) $(COMPILE.c) $(OUTPUT_OPTION) $< .PRECIOUS: $(DEPDIR)/%.d