From c30ee8bc90aca5e629894d7a845e74373a15c02b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 19 May 2007 17:28:52 +0000 Subject: Fix this to better deal with non-existing file names entered in the SOURCES file as it otherwise seriously screws up the build system and creates very odd errors that are hard to track down. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13414 a1c6a512-1295-4272-9138-f99709370657 --- tools/makesrc.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/makesrc.inc') diff --git a/tools/makesrc.inc b/tools/makesrc.inc index 78d97f3283..837a812d51 100644 --- a/tools/makesrc.inc +++ b/tools/makesrc.inc @@ -8,7 +8,11 @@ # # The weird grep -v thing in here is due to Apple's stupidities and is needed # to make this do right when used on Mac OS X. +# +# The usage of ls is only to make sure that we only output existing file names +# to not confuse make and to produce a fairly decent error message to the +# terminal. SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - | \ -grep -v "^\#") +grep -v "^\#" | xargs ls) -- cgit v1.2.3