Skip to content

Commit e590d69

Browse files
author
Linus Torvalds
committed
Add more header dependencies.
Yeah, my Makefiles are always a total disaster. Better this than autotools or some horror like that, though.
1 parent 0fcfd16 commit e590d69

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

Makefile

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ install: $(PROG)
2424

2525
LIB_OBJS=read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o
2626
LIB_FILE=libgit.a
27+
LIB_H=cache.h object.h
2728

2829
$(LIB_FILE): $(LIB_OBJS)
2930
$(AR) rcs $@ $(LIB_OBJS)
@@ -77,8 +78,29 @@ merge-base: merge-base.o $(LIB_FILE) object.o commit.o tree.o blob.o
7778
merge-cache: merge-cache.o $(LIB_FILE)
7879
$(CC) $(CFLAGS) -o merge-cache merge-cache.o $(LIBS)
7980

80-
read-cache.o: cache.h
81-
show-diff.o: cache.h
81+
blob.o: $(LIB_H)
82+
cat-file.o: $(LIB_H)
83+
check-files.o: $(LIB_H)
84+
checkout-cache.o: $(LIB_H)
85+
commit.o: $(LIB_H)
86+
commit-tree.o: $(LIB_H)
87+
diff-tree.o: $(LIB_H)
88+
fsck-cache.o: $(LIB_H)
89+
init-db.o: $(LIB_H)
90+
ls-tree.o: $(LIB_H)
91+
merge-base.o: $(LIB_H)
92+
merge-cache.o: $(LIB_H)
93+
object.o: $(LIB_H)
94+
read-cache.o: $(LIB_H)
95+
read-tree.o: $(LIB_H)
96+
rev-tree.o: $(LIB_H)
97+
sha1_file.o: $(LIB_H)
98+
show-diff.o: $(LIB_H)
99+
show-files.o: $(LIB_H)
100+
tree.o: $(LIB_H)
101+
update-cache.o: $(LIB_H)
102+
usage.o: $(LIB_H)
103+
write-tree.o: $(LIB_H)
82104

83105
clean:
84106
rm -f *.o $(PROG) $(LIB_FILE)

0 commit comments

Comments
 (0)