diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-05-19 17:28:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-05-19 17:28:52 +0000 |
commit | c30ee8bc90aca5e629894d7a845e74373a15c02b (patch) | |
tree | 68bcd0b3f1b3389b0b04d1b4f3d814c0f9e250ab /tools/makesrc.inc | |
parent | fcbc699dca58a43888de5d8328794fe7ede3ed9c (diff) | |
download | rockbox-c30ee8bc90aca5e629894d7a845e74373a15c02b.tar.gz rockbox-c30ee8bc90aca5e629894d7a845e74373a15c02b.zip |
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
Diffstat (limited to 'tools/makesrc.inc')
-rw-r--r-- | tools/makesrc.inc | 6 |
1 files changed, 5 insertions, 1 deletions
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 @@ | |||
8 | # | 8 | # |
9 | # The weird grep -v thing in here is due to Apple's stupidities and is needed | 9 | # The weird grep -v thing in here is due to Apple's stupidities and is needed |
10 | # to make this do right when used on Mac OS X. | 10 | # to make this do right when used on Mac OS X. |
11 | # | ||
12 | # The usage of ls is only to make sure that we only output existing file names | ||
13 | # to not confuse make and to produce a fairly decent error message to the | ||
14 | # terminal. | ||
11 | 15 | ||
12 | SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ | 16 | SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ |
13 | $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - | \ | 17 | $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - | \ |
14 | grep -v "^\#") | 18 | grep -v "^\#" | xargs ls) |