From c2e887c5f740aa32acaa2524a940de4413e71282 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 22 Sep 2004 21:39:41 +0000 Subject: prevent missing include files from making the dependency generation to fail git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5107 a1c6a512-1295-4272-9138-f99709370657 --- tools/make.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/make.inc b/tools/make.inc index f83be79..1c7b762 100644 --- a/tools/make.inc +++ b/tools/make.inc @@ -8,12 +8,15 @@ $(OBJDIR)/%.o: %.S @echo "CC $<" @$(CC) $(CFLAGS) -c $< -o $@ +# the lame echo stuff down here is to prevent any compiler errors/warnings +# to cause an error code to get returned and thus stop the build $(DEPFILE): $(SOURCES) @rm -f $(DEPFILE) @(for each in $(SOURCES); do \ obj=`echo $$each | sed -e 's/\.c/.o/'`; \ $(CC) -MM -MT "$(OBJDIR)/$$obj.o" $(CFLAGS) $$each >> $(DEPFILE) 2>/dev/null; \ - done ) + done; \ + echo "oo" >/dev/null ) tags: @(for d in $(DIRS); do \ -- cgit v1.1