summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-02-04 05:48:43 +0300
committerAnup Patel <anup@brainfault.org>2019-02-05 16:23:27 +0300
commit9a72e5006cf5481455faf4c2d0801139f71e0d9b (patch)
tree28464e8f1d5793ee9156669e6822e4b90b0e1912 /Makefile
parentc0addfe751e51376a73df71336ce11826e68c939 (diff)
downloadopensbi-9a72e5006cf5481455faf4c2d0801139f71e0d9b.tar.xz
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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)`; \