Skip to content

Commit

Permalink
Makefile: fix header dependencies.
Browse files Browse the repository at this point in the history
For whatever reason, the all-in-one line does not work to make
objects depend on headers.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Aug 24, 2024
1 parent 43efda6 commit 18566d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 18566d8

Please sign in to comment.