git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Makefile: Cover more files with make check

From
Stephen Boyd <bebarino@gmail.com>
Date
Mar 21, 2011, 09:45 UTC
Message-ID
<1300700704-22674-1-git-send-email-bebarino@gmail.com>

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
Next: Stephen Boyd
Message 1 of 13 in “Makefile: Cover more files with make check”
  1. 1/2 Makefile: Cover more files with make checkStephen Boyd, Mar 21, 2011
  2. 2/2 Fix sparse warningsStephen Boyd, Mar 21, 2011
  3. Johannes SixtMar 21, 2011
  4. Stephen BoydMar 21, 2011
  5. Junio C HamanoMar 21, 2011
  6. Junio C HamanoMar 21, 2011
  7. 2/2 Fix sparse warningsStephen Boyd, Mar 21, 2011
  8. Junio C HamanoMar 21, 2011
  9. Junio C HamanoMar 21, 2011
  10. Stephen BoydMar 21, 2011
  11. 2/2 Fix sparse warningsStephen Boyd, Mar 22, 2011
  12. Junio C HamanoMar 22, 2011
  13. Junio C HamanoMar 21, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.