Commit 13ce9f1b96279187249d56cc641252ff617fa35a

Shawn O. Pearce 2008-10-31T12:28:49

Fix Makefile targets to correctly depend on *.h files Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
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)