Do not let errors pass by unnoticed when running `make check'.
authorJunio C Hamano <junkio@cox.net>
Wed, 14 Dec 2005 21:32:52 +0000 (13:32 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Dec 2005 21:32:52 +0000 (13:32 -0800)
[jc: originally from Amos Waterland.]

Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile
index 01b6643bdfd87ae57052a0545a733d4e11ba5136..d494ad4b1fb022e7ba0f5937da693a5f9044b079 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -449,7 +449,7 @@ test-delta$X: test-delta.c diff-delta.o patch-delta.o
        $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $^
 
 check:
-       for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i; done
+       for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; done