4 PROG
= update-cache show-diff init-db write-tree read-tree commit-tree \
5 cat-file fsck-cache checkout-cache diff-tree rev-tree show-files \
11 install $(PROG
) $(HOME
)/bin
/
17 update-cache
: update-cache.o read-cache.o
18 $(CC
) $(CFLAGS
) -o update-cache update-cache.o read-cache.o
$(LIBS
)
20 show-diff
: show-diff.o read-cache.o
21 $(CC
) $(CFLAGS
) -o show-diff show-diff.o read-cache.o
$(LIBS
)
23 write-tree
: write-tree.o read-cache.o
24 $(CC
) $(CFLAGS
) -o write-tree write-tree.o read-cache.o
$(LIBS
)
26 read-tree
: read-tree.o read-cache.o
27 $(CC
) $(CFLAGS
) -o read-tree read-tree.o read-cache.o
$(LIBS
)
29 commit-tree
: commit-tree.o read-cache.o
30 $(CC
) $(CFLAGS
) -o commit-tree commit-tree.o read-cache.o
$(LIBS
)
32 cat-file
: cat-file.o read-cache.o
33 $(CC
) $(CFLAGS
) -o cat-file cat-file.o read-cache.o
$(LIBS
)
35 fsck-cache
: fsck-cache.o read-cache.o
36 $(CC
) $(CFLAGS
) -o fsck-cache fsck-cache.o read-cache.o
$(LIBS
)
38 checkout-cache
: checkout-cache.o read-cache.o
39 $(CC
) $(CFLAGS
) -o checkout-cache checkout-cache.o read-cache.o
$(LIBS
)
41 diff-tree
: diff-tree.o read-cache.o
42 $(CC
) $(CFLAGS
) -o diff-tree diff-tree.o read-cache.o
$(LIBS
)
44 rev-tree
: rev-tree.o read-cache.o
45 $(CC
) $(CFLAGS
) -o rev-tree rev-tree.o read-cache.o
$(LIBS
)
47 show-files
: show-files.o read-cache.o
48 $(CC
) $(CFLAGS
) -o show-files show-files.o read-cache.o
$(LIBS
)
50 check-files
: check-files.o read-cache.o
51 $(CC
) $(CFLAGS
) -o check-files check-files.o read-cache.o
$(LIBS
)
57 rm -f
*.o
$(PROG
) temp_git_file_
*
60 cd ..
; tar czvf dircache.
tar.gz dir-cache