diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-08 09:20:21 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-08 09:20:21 +0000 |
commit | cbb62ab966b612c0d2b3fcb1dff6c5c58234ffe3 (patch) | |
tree | 570d1ea03e313709c1c9f6470600a140aa3e58ca /tools/make.inc | |
parent | eb37ca792af9bcfde189d343d8afb89c52fc0706 (diff) | |
download | rockbox-cbb62ab966b612c0d2b3fcb1dff6c5c58234ffe3.tar.gz rockbox-cbb62ab966b612c0d2b3fcb1dff6c5c58234ffe3.zip |
Don't bail out and die if SOURCES is empty.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5222 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/make.inc')
-rw-r--r-- | tools/make.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/make.inc b/tools/make.inc index 25173ae7e0..471d98a9de 100644 --- a/tools/make.inc +++ b/tools/make.inc | |||
@@ -12,9 +12,11 @@ $(OBJDIR)/%.o: %.S | |||
12 | # to cause an error code to get returned and thus stop the build | 12 | # to cause an error code to get returned and thus stop the build |
13 | $(DEPFILE): $(SOURCES) | 13 | $(DEPFILE): $(SOURCES) |
14 | @rm -f $(DEPFILE) | 14 | @rm -f $(DEPFILE) |
15 | @(for each in $(SOURCES); do \ | 15 | @(for each in $(SOURCES) x; do \ |
16 | obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \ | 16 | if test "x" != "$$each"; then \ |
17 | $(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \ | 17 | obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \ |
18 | $(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \ | ||
19 | fi; \ | ||
18 | done; \ | 20 | done; \ |
19 | echo "oo" >/dev/null ) | 21 | echo "oo" >/dev/null ) |
20 | 22 | ||