Fix Makefile targets to correctly depend on *.h files Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
diff --git a/Makefile b/Makefile
index e719ec2..662a69f 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ apidocs:
.c.o:
$(CC) $(BASIC_CFLAGS) $(CFLAGS) -c $< -o $@
-src/%.o: src/%.c $(HDRS)
+$(OBJS): $(HDRS)
libgit2.a: $(OBJS)
rm -f libgit2.a
$(AR) cr libgit2.a $(OBJS)