Add "show-files" command to show the list of managed (or non-managed) files.
[git/git.git] / Makefile
CommitLineData
19b2860c 1CFLAGS=-g -O3 -Wall
e83c5163
LT
2CC=gcc
3
33db5f4d 4PROG= update-cache show-diff init-db write-tree read-tree commit-tree \
8695c8bf 5 cat-file fsck-cache checkout-cache diff-tree rev-tree show-files
e83c5163
LT
6
7all: $(PROG)
8
9install: $(PROG)
10 install $(PROG) $(HOME)/bin/
11
94261677 12LIBS= -lssl -lz
e83c5163
LT
13
14init-db: init-db.o
15
16update-cache: update-cache.o read-cache.o
17 $(CC) $(CFLAGS) -o update-cache update-cache.o read-cache.o $(LIBS)
18
19show-diff: show-diff.o read-cache.o
20 $(CC) $(CFLAGS) -o show-diff show-diff.o read-cache.o $(LIBS)
21
22write-tree: write-tree.o read-cache.o
23 $(CC) $(CFLAGS) -o write-tree write-tree.o read-cache.o $(LIBS)
24
25read-tree: read-tree.o read-cache.o
26 $(CC) $(CFLAGS) -o read-tree read-tree.o read-cache.o $(LIBS)
27
28commit-tree: commit-tree.o read-cache.o
29 $(CC) $(CFLAGS) -o commit-tree commit-tree.o read-cache.o $(LIBS)
30
31cat-file: cat-file.o read-cache.o
32 $(CC) $(CFLAGS) -o cat-file cat-file.o read-cache.o $(LIBS)
33
7660a188
LT
34fsck-cache: fsck-cache.o read-cache.o
35 $(CC) $(CFLAGS) -o fsck-cache fsck-cache.o read-cache.o $(LIBS)
36
33db5f4d
LT
37checkout-cache: checkout-cache.o read-cache.o
38 $(CC) $(CFLAGS) -o checkout-cache checkout-cache.o read-cache.o $(LIBS)
39
9174026c
LT
40diff-tree: diff-tree.o read-cache.o
41 $(CC) $(CFLAGS) -o diff-tree diff-tree.o read-cache.o $(LIBS)
42
84fe9720
LT
43rev-tree: rev-tree.o read-cache.o
44 $(CC) $(CFLAGS) -o rev-tree rev-tree.o read-cache.o $(LIBS)
45
8695c8bf
LT
46show-files: show-files.o read-cache.o
47 $(CC) $(CFLAGS) -o show-files show-files.o read-cache.o $(LIBS)
48
e83c5163
LT
49read-cache.o: cache.h
50show-diff.o: cache.h
51
52clean:
53 rm -f *.o $(PROG) temp_git_file_*
54
55backup: clean
56 cd .. ; tar czvf dircache.tar.gz dir-cache