mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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
This commit is contained in:
parent
eb37ca792a
commit
cbb62ab966
1 changed files with 5 additions and 3 deletions
|
@ -12,9 +12,11 @@ $(OBJDIR)/%.o: %.S
|
||||||
# to cause an error code to get returned and thus stop the build
|
# to cause an error code to get returned and thus stop the build
|
||||||
$(DEPFILE): $(SOURCES)
|
$(DEPFILE): $(SOURCES)
|
||||||
@rm -f $(DEPFILE)
|
@rm -f $(DEPFILE)
|
||||||
@(for each in $(SOURCES); do \
|
@(for each in $(SOURCES) x; do \
|
||||||
|
if test "x" != "$$each"; then \
|
||||||
obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
|
obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
|
||||||
$(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
|
$(CC) -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \
|
||||||
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
echo "oo" >/dev/null )
|
echo "oo" >/dev/null )
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue