From 0a830b5a5a03c35bac9f4e80a9fe7714bcee60e4 Mon Sep 17 00:00:00 2001 From: RavePossum <145081120+ravepossum@users.noreply.github.com> Date: Wed, 30 Oct 2024 04:20:50 -0400 Subject: [PATCH] Restore test file dependencies so they're rebuilt properly (#5617) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 4052e81a2e..143197d3f0 100644 --- a/Makefile +++ b/Makefile @@ -414,6 +414,10 @@ $(TEST_BUILDDIR)/%.o: $(TEST_SUBDIR)/%.c $(TEST_BUILDDIR)/%.d: $(TEST_SUBDIR)/%.c $(SCANINC) -M $@ $(INCLUDE_SCANINC_ARGS) -I tools/agbcc/include $< +ifneq ($(NODEP),1) +-include $(addprefix $(OBJ_DIR)/,$(TEST_SRCS:.c=.d)) +endif + $(ASM_BUILDDIR)/%.o: $(ASM_SUBDIR)/%.s $(AS) $(ASFLAGS) -o $@ $<