From: Stephen Boyd Date: Mon, 21 Mar 2011 09:45:03 +0000 (-0700) Subject: Makefile: Cover more files with make check X-Git-Tag: v1.7.5-rc1~21^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=52d269da7ec66338e733aaf839ce5b8ad6709337;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 654d8ac7e..97cd1507f 100644 --- 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; \