]> asedeno.scripts.mit.edu Git - git.git/blobdiff - Makefile
Merge branch 'jk/maint-commit-v-strip'
[git.git] / Makefile
index 220de39914c4df3abf394ad052ebb1fd6f62d3f7..920cb4207844648f9a7ae7e74be8b426543ea7e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1355,7 +1355,16 @@ check-sha1:: test-sha1$X
        ./test-sha1.sh
 
 check: common-cmds.h
-       for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; done
+       if sparse; \
+       then \
+               for i in *.c; \
+               do \
+                       sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; \
+               done; \
+       else \
+               echo 2>&1 "Did you mean 'make test'?"; \
+               exit 1; \
+       fi
 
 remove-dashes:
        ./fixup-builtins $(BUILT_INS) $(PROGRAMS) $(SCRIPTS)