Makefile: Cover more files with make check
[gitweb.git] / Makefile
index 654d8ac7e14a2118b1fd2014fb13a6b5d4c50c64..97cd1507fa2924b958a1ea88568844b11e653dbd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2176,7 +2176,7 @@ check-sha1:: test-sha1$X
 check: common-cmds.h
        if sparse; \
        then \
-               for i in *.c; \
+               for i in $(patsubst %.o, %.c, $(GIT_OBJS)); \
                do \
                        sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; \
                done; \