Skip to contentSkip to conversation

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

PATCH In review Johannes Sixt 2 participants 2 messages Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

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

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

---
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(-)
Makefile +1 -1
index fe9bcea..bc88d13 100644
@@ -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) $@+
 
Signature · 1 line
1.7.11.1.127.gdcfb9a9