From 24718b495638d3f4bb0f50ac1953606432e923e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Tue, 12 May 2026 00:01:32 +0200 Subject: [PATCH] Makefile: track dependencies for tests --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8d39262..97985db 100644 --- a/Makefile +++ b/Makefile @@ -12,10 +12,10 @@ endif BUILDDIR = build SOURCES = $(wildcard src/*.c) -OBJECTS = $(addprefix $(BUILDDIR)/,$(SOURCES:.c=.o)) -DEPS = $(addprefix $(BUILDDIR)/,$(SOURCES:.c=.d)) -LIB = liblilalloc TEST_SOURCES = $(wildcard test/*.c) +OBJECTS = $(addprefix $(BUILDDIR)/,$(SOURCES:.c=.o)) +DEPS = $(addprefix $(BUILDDIR)/,$(SOURCES:.c=.d)) $(addprefix $(BUILDDIR)/,$(TEST_SOURCES:.c=.d)) +LIB = liblilalloc TEST_BINS = $(patsubst test/%.c,$(BUILDDIR)/test/%,$(TEST_SOURCES)) .PHONY: all