From ca1a9aaf9435d13cda5b33faa9084e03a42457cb Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 18 Jan 2017 17:07:23 +0100 Subject: Avoid 'echo -e' for improved sh portability This fixes the CUDA .d file fixup for macOS. --- build/linux/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/linux/Makefile.in') diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in index ae43afa..5dfb75e 100644 --- a/build/linux/Makefile.in +++ b/build/linux/Makefile.in @@ -358,7 +358,7 @@ endif @rm -f $(*D)/$(DEPDIR)/$(*F).d2 @# Generate empty targets for all dependencies listed in the .d file. @# This mimics gcc's -MP option. - @for x in `cat $(*D)/$(DEPDIR)/$(*F).d`; do if test a$$x != a: -a a$$x != a\\; then echo -e "\n$$x:\n" >> $(*D)/$(DEPDIR)/$(*F).d; fi; done + @for x in `cat $(*D)/$(DEPDIR)/$(*F).d`; do if test a$$x != a: -a a$$x != a\\; then (echo; echo "$$x:") >> $(*D)/$(DEPDIR)/$(*F).d; fi; done @# Generate a fake libtool .lo file @echo "# $*.lo - a libtool object file" > $*.lo @echo "# Generated by" `./libtool --version | head -n 1` >> $*.lo -- cgit v1.2.3