Make "rev-tree" capable of showing the difference in reachability between two
[git/vmiklos.git] / Makefile
blobddb4e3ecd4a1097b1312add0942934f31b17c37e
1 CFLAGS=-g -O3 -Wall
2 CC=gcc
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
7 all: $(PROG)
9 install: $(PROG)
10 install $(PROG) $(HOME)/bin/
12 LIBS= -lssl -lz
14 init-db: init-db.o
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)
40 diff-tree: diff-tree.o read-cache.o
41 $(CC) $(CFLAGS) -o diff-tree diff-tree.o read-cache.o $(LIBS)
43 rev-tree: rev-tree.o read-cache.o
44 $(CC) $(CFLAGS) -o rev-tree rev-tree.o read-cache.o $(LIBS)
46 read-cache.o: cache.h
47 show-diff.o: cache.h
49 clean:
50 rm -f *.o $(PROG) temp_git_file_*
52 backup: clean
53 cd .. ; tar czvf dircache.tar.gz dir-cache