From 9a72e5006cf5481455faf4c2d0801139f71e0d9b Mon Sep 17 00:00:00 2001 From: Olof Johansson <olof@lixom.net> Date: Sun, 3 Feb 2019 18:48:43 -0800 Subject: Makefile: Don't rely on "echo -n" Turns out it doesn't behave as expected on MacOS, it doesn't honor -n and echoes that to the file instead. Add a slash and just let the newline be there instead. Signed-off-by: Olof Johansson <olof@lixom.net> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ae90326..8e0846b 100644 --- a/Makefile +++ b/Makefile @@ -180,7 +180,7 @@ compile_cpp = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \ $(CPP) $(CPPFLAGS) -x c $(2) | grep -v "\#" > $(1) compile_cc_dep = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \ echo " CC-DEP $(subst $(build_dir)/,,$(1))"; \ - echo -n `dirname $(1)`/ > $(1) && \ + echo `dirname $(1)`/ \\ > $(1) && \ $(CC) $(CFLAGS) $(call dynamic_flags,$(1),$(2)) \ -MM $(2) >> $(1) || rm -f $(1) compile_cc = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \ @@ -188,7 +188,7 @@ compile_cc = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \ $(CC) $(CFLAGS) $(call dynamic_flags,$(1),$(2)) -c $(2) -o $(1) compile_as_dep = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \ echo " AS-DEP $(subst $(build_dir)/,,$(1))"; \ - echo -n `dirname $(1)`/ > $(1) && \ + echo `dirname $(1)`/ \\ > $(1) && \ $(AS) $(ASFLAGS) $(call dynamic_flags,$(1),$(2)) \ -MM $(2) >> $(1) || rm -f $(1) compile_as = $(CMD_PREFIX)mkdir -p `dirname $(1)`; \ -- cgit v1.2.3