[PATCH] Silent flag for show-diff
[git/gitweb.git] / Makefile
blobdc6e5abfcc7af5eac551304bcb6aea4701b3116b
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 show-files \
6 check-files
8 all: $(PROG)
10 install: $(PROG)
11 install $(PROG) $(HOME)/bin/
13 LIBS= -lssl -lz
15 init-db: init-db.o
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)
53 read-cache.o: cache.h
54 show-diff.o: cache.h
56 clean:
57 rm -f *.o $(PROG) temp_git_file_*
59 backup: clean
60 cd .. ; tar czvf dircache.tar.gz dir-cache