4 PROG= update-cache show-diff init-db write-tree read-tree commit-tree \
5 cat-file fsck-cache checkout-cache
10 install $(PROG) $(HOME)/bin/
16 update-cache: update-cache.o read-cache.o
17 $(CC) $(CFLAGS) -o update-cache update-cache.o read-cache.o $(LIBS)
19 show-diff: show-diff.o read-cache.o
20 $(CC) $(CFLAGS) -o show-diff show-diff.o read-cache.o $(LIBS)
22 write-tree: write-tree.o read-cache.o
23 $(CC) $(CFLAGS) -o write-tree write-tree.o read-cache.o $(LIBS)
25 read-tree: read-tree.o read-cache.o
26 $(CC) $(CFLAGS) -o read-tree read-tree.o read-cache.o $(LIBS)
28 commit-tree: commit-tree.o read-cache.o
29 $(CC) $(CFLAGS) -o commit-tree commit-tree.o read-cache.o $(LIBS)
31 cat-file: cat-file.o read-cache.o
32 $(CC) $(CFLAGS) -o cat-file cat-file.o read-cache.o $(LIBS)
34 fsck-cache: fsck-cache.o read-cache.o
35 $(CC) $(CFLAGS) -o fsck-cache fsck-cache.o read-cache.o $(LIBS)
37 checkout-cache: checkout-cache.o read-cache.o
38 $(CC) $(CFLAGS) -o checkout-cache checkout-cache.o read-cache.o $(LIBS)
44 rm -f *.o $(PROG) temp_git_file_*
47 cd .. ; tar czvf dircache.tar.gz dir-cache