From 738397b85520056030bd4061ed2acce805b57861 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 26 Jul 2009 21:27:43 +0000 Subject: [PATCH] cc65 generates dependency files having the list of prerequisites start with a tab character. The processing done in the canned command sequence FINALIZE_DEPENDENCY brings this tab character to the beginning of the line making the empty rule look like a command. Therefore we replace the tab character in question with a blank. --- cpu/6502/Makefile.6502 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/6502/Makefile.6502 b/cpu/6502/Makefile.6502 index d4835fc3e..020ad92b3 100644 --- a/cpu/6502/Makefile.6502 +++ b/cpu/6502/Makefile.6502 @@ -30,7 +30,7 @@ # # Author: Oliver Schmidt # -# $Id: Makefile.6502,v 1.28 2009/07/02 22:36:35 oliverschmidt Exp $ +# $Id: Makefile.6502,v 1.29 2009/07/26 21:27:43 oliverschmidt Exp $ # ifndef CC65_INC @@ -81,7 +81,7 @@ CUSTOM_RULE_C_TO_OBJECTDIR_O = 1 $(OBJECTDIR)/%.o: %.c $(CC) $(CFLAGS) --create-dep $< -o $(@:.o=.s) @$(AS) $(ASFLAGS) $(@:.o=.s) -o $@ - @sed 's!.s:!.o:!' < $(@:.o=.u) > $(@:.o=.d) + @sed -e 's!.s:!.o:!' -e 's!\t! !' < $(@:.o=.u) > $(@:.o=.d) @rm -f $(@:.o=.s) $(@:.o=.u) @$(FINALIZE_DEPENDENCY)