Makefile: fix sed newline in replacements - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 760c60d60ed363c83c22512e35a451544aaa44b7
 (DIR) parent 01d3b234128ef43576161834ef6f06c79dcaf5a8
 (HTM) Author: Quentin Rameau <quinq@fifth.space>
       Date:   Sat,  8 Mar 2025 17:32:41 +0100
       
       Makefile: fix sed newline in replacements
       
       Sadly, it isn't possible to use special characters escape
       in portable sed.
       
       Instead, use an explicit newline character.
       
       Diffstat:
         M src/libmach/coff32/Makefile         |       6 ++----
         M src/libmach/elf/Makefile            |       6 ++----
       
       2 files changed, 4 insertions(+), 8 deletions(-)
       ---
 (DIR) diff --git a/src/libmach/coff32/Makefile b/src/libmach/coff32/Makefile
       @@ -38,10 +38,8 @@ all: $(OBJS)
        $(OBJS): $(COFFHDRS)
        
        dep:
       -        @(printf 'COFF32OBJS=\\';\
       -        echo;\
       -        echo $(OBJS) |\
       -        sed -E 's@ *([^ ]*)@\tcoff32/\1\\\n@g') > deps.mk
       +        @{ printf 'COFF32OBJS=\\\n';\
       +        printf '\tcoff32/%s\\\n' $(OBJS); } > deps.mk
        
        distclean:
                rm -f deps.mk
 (DIR) diff --git a/src/libmach/elf/Makefile b/src/libmach/elf/Makefile
       @@ -17,10 +17,8 @@ OBJS =\
        all: $(OBJS)
        
        dep:
       -        @(printf 'ELFOBJS=\\';\
       -        echo;\
       -        echo $(OBJS) |\
       -        sed -E 's@ *([^ ]*)@\telf/\1\\\n@g') > deps.mk
       +        @{ printf 'ELFOBJS=\\\n';\
       +        printf '\telf/%s\\\n' $(OBJS); } > deps.mk
        
        distclean:
                rm -f deps.mk