summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-01-18 17:07:23 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-01-19 12:01:54 +0100
commitca1a9aaf9435d13cda5b33faa9084e03a42457cb (patch)
treec18224ce06a72ae3de29478afe1004ea96590bc2 /build
parentdb5318f30c28d37f877325f587485d3122e784df (diff)
downloadastra-ca1a9aaf9435d13cda5b33faa9084e03a42457cb.tar.gz
astra-ca1a9aaf9435d13cda5b33faa9084e03a42457cb.tar.bz2
astra-ca1a9aaf9435d13cda5b33faa9084e03a42457cb.tar.xz
astra-ca1a9aaf9435d13cda5b33faa9084e03a42457cb.zip
Avoid 'echo -e' for improved sh portability
This fixes the CUDA .d file fixup for macOS.
Diffstat (limited to 'build')
-rw-r--r--build/linux/Makefile.in2
1 files changed, 1 insertions, 1 deletions
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