Makefile: track dependencies for tests

This commit is contained in:
Nils O. Selåsdal
2026-05-12 00:01:32 +02:00
parent 7687ffa710
commit 24718b4956
+3 -3
View File
@@ -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