From 18566d89b8a5be8de24649d27e2ed341292bad6b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 24 Aug 2024 16:43:33 +0930 Subject: [PATCH] Makefile: fix header dependencies. For whatever reason, the all-in-one line does not work to make objects depend on headers. Signed-off-by: Rusty Russell --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d68303c..3432a14 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,9 @@ CHECKDATA=testdata/db/v0/data.mdb all: $(BIN) lib bench -%.o: %.c $(HEADERS) +$(OBJS): $(HEADERS) + +%.o: %.c $(CC) $(CFLAGS) -c -o $@ $< libnostrdb.a: $(OBJS)