git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Makefile: Cover more files with make check
@ 2011-03-21  9:45 Stephen Boyd
  2011-03-21  9:45 ` [PATCH 2/2] Fix sparse warnings Stephen Boyd
  2011-03-21 17:27 ` [PATCH 1/2] Makefile: Cover more files with make check Junio C Hamano
  0 siblings, 2 replies; 13+ messages in thread
From: Stephen Boyd @ 2011-03-21  9:45 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

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>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 654d8ac..97cd150 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; \
-- 
1.7.4.1.343.ga91df

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-03-22 17:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21  9:45 [PATCH 1/2] Makefile: Cover more files with make check Stephen Boyd
2011-03-21  9:45 ` [PATCH 2/2] Fix sparse warnings Stephen Boyd
2011-03-21 10:10   ` Johannes Sixt
2011-03-21 10:12     ` Stephen Boyd
2011-03-21 16:12     ` Junio C Hamano
2011-03-21 16:15   ` Junio C Hamano
2011-03-21 18:01     ` [PATCHv2 " Stephen Boyd
2011-03-21 19:29       ` Junio C Hamano
2011-03-21 21:58         ` Junio C Hamano
2011-03-21 22:04           ` Stephen Boyd
2011-03-22  7:51         ` [PATCHv3 " Stephen Boyd
2011-03-22 17:18           ` Junio C Hamano
2011-03-21 17:27 ` [PATCH 1/2] Makefile: Cover more files with make check Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).