Makefile: Cover more files with make check
After the builtin/ move 'make check' doesn't cover the builtin/ directory. We could just add builtin/*.c but lets just use GIT_OBJS instead so we cover future movement of the source files. Signed-off-by: Stephen Boyd <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stephen Boyd committed
Mar 21, 2011 at 02:45 UTC
52d269da7ec66338e733aaf839ce5b8ad6709337
1 file changed
+1
-1
Makefile
+1
-1
@@ -2176,7 +2176,7 @@ check-sha1:: test-sha1$X
2176
check: common-cmds.h
2177
if sparse; \
2178
then \
2179
- for i in *.c; \
2179
+ for i in $(patsubst %.o, %.c, $(GIT_OBJS)); \
2180
do \
2181
sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; \
2182
done; \