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

[PATCH] Makefile: use overridable $(FIND) instead of hard-coded 'find'

From
Johannes Sixt <j6t@kdbg.org>
Date
Aug 6, 2012, 21:06 UTC
Message-ID
<502031C6.7040908@kdbg.org>

The Makefile already offers the variable $(FIND) and uses it except in one place. Fix it.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 For my Windows builds, I need "FIND=/usr/bin/find" in config.mak because
 I have /usr/bin is too late in PATH to override MS's incompatible 'find'.
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index fe9bcea..bc88d13 100644
--- a/Makefile
+++ b/Makefile
@@ -2094,7 +2094,7 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
 perl/perl.mak: perl/PM.stamp
 
 perl/PM.stamp: FORCE
-	$(QUIET_GEN)find perl -type f -name '*.pm' | sort >$@+ && \
+	$(QUIET_GEN)$(FIND) perl -type f -name '*.pm' | sort >$@+ && \
 	{ cmp $@+ $@ >/dev/null 2>/dev/null || mv $@+ $@; } && \
 	$(RM) $@+
 
-- 
1.7.11.1.127.gdcfb9a9
Next: Junio C Hamano
Message 1 of 2 in “Makefile: use overridable $(FIND) instead of hard-coded 'find'”
  1. Makefile: use overridable $(FIND) instead of hard-coded 'find'Johannes Sixt, Aug 6, 2012
  2. Junio C HamanoAug 6, 2012

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.