Fix Makefile targets to correctly depend on *.h files

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2008-10-31 12:28:49 -07:00
parent 8edc2805f1
commit 13ce9f1b96

View File

@ -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)