From 71d423a06b5ce20101d61a811c3088cf667a0ca9 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 16 Apr 2024 20:45:02 +0630 Subject: [PATCH] Track dependencies properly --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9469826..121b63a 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ VM_OUT=$(DIST)/avm.out ## Dependencies DEPDIR:=$(DIST)/dependencies DEPFLAGS = -MT $@ -MMD -MP -MF -DEPS:=$($(LIB_SRC):%.c=$(DEPDIR):%.o) $($(VM_SRC):%.c=$(DEPDIR):%.o) +DEPS:=$(LIB_CODE:$(LIB_SRC)/%.c=$(DEPDIR)/lib/%.d) $(VM_CODE:$(VM_SRC)/%.c=$(DEPDIR)/vm/%.d) $(DEPDIR)/vm/main.d # Things you want to build on `make` all: $(DIST) lib vm