diff --git a/Makefile b/Makefile
index 57e70239503..2184a74b809 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ $(LIB_FILE): $(LIB_OBJS)
 
 init-db: init-db.o
 
-%: %.o $(LIB_FILE)
+%: %.c $(LIB_FILE)
 	$(CC) $(CFLAGS) -o $@ $< $(LIBS)
 
 blob.o: $(LIB_H)