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.
This commit is contained in:
oliverschmidt 2009-07-26 21:27:43 +00:00
parent 283d288f1a
commit 738397b855

View file

@ -30,7 +30,7 @@
# #
# Author: Oliver Schmidt <ol.sc@web.de> # Author: Oliver Schmidt <ol.sc@web.de>
# #
# $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 ifndef CC65_INC
@ -81,7 +81,7 @@ CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
$(OBJECTDIR)/%.o: %.c $(OBJECTDIR)/%.o: %.c
$(CC) $(CFLAGS) --create-dep $< -o $(@:.o=.s) $(CC) $(CFLAGS) --create-dep $< -o $(@:.o=.s)
@$(AS) $(ASFLAGS) $(@:.o=.s) -o $@ @$(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) @rm -f $(@:.o=.s) $(@:.o=.u)
@$(FINALIZE_DEPENDENCY) @$(FINALIZE_DEPENDENCY)