aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-23 20:20:25 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-24 00:26:31 -0700
commit17448209f5441718c69642871c85a80f00d12b43 (patch)
tree0e9e0d8a1718e3336c9a6d6b977b834b7cff355a /Makefile
parenta6e5642f39db2113785c4f22add7e16d559b8d55 (diff)
downloadgit-17448209f5441718c69642871c85a80f00d12b43.tar.gz
git-17448209f5441718c69642871c85a80f00d12b43.tar.xz
Add test-dump-cache-tree
This was useful in diagnosing the corrupt index.aux format problem. But do not bother building or installing it by default. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 518c3c176..1aa96f4f2 100644
--- a/Makefile
+++ b/Makefile
@@ -611,6 +611,9 @@ test-date$X: test-date.c date.o ctype.o
test-delta$X: test-delta.c diff-delta.o patch-delta.o
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $^ -lz
+test-dump-cache-tree$X: dump-cache-tree.o $(GITLIBS)
+ $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
+
check:
for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; done