aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-03-05 09:46:45 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-03-05 09:46:45 +0000
commit0c3ed6b04632409046c6d798be9699bd83cff5a4 (patch)
tree7a0854398d1017c9f0b3cee37d3422755957d2f4 /utils
parent2f017cb7f3fbbde93f69a47172eeb7244ca269ec (diff)
downloadexternal_llvm-0c3ed6b04632409046c6d798be9699bd83cff5a4.zip
external_llvm-0c3ed6b04632409046c6d798be9699bd83cff5a4.tar.gz
external_llvm-0c3ed6b04632409046c6d798be9699bd83cff5a4.tar.bz2
Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of $(ECHO).
On mingw and python/w32, lit would not be expected to understand MSYS-style path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/llvm-lit/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/llvm-lit/Makefile b/utils/llvm-lit/Makefile
index 702591f..77021bb 100644
--- a/utils/llvm-lit/Makefile
+++ b/utils/llvm-lit/Makefile
@@ -13,9 +13,10 @@ include $(LEVEL)/Makefile.common
all:: $(ToolDir)/llvm-lit
-$(ToolDir)/llvm-lit: llvm-lit.in $(ToolDir)/.dir
+$(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir
$(Echo) "Creating 'llvm-lit' script..."
- $(Verb)sed -e "s#@LLVM_SOURCE_DIR@#$(LLVM_SRC_ROOT)#g" \
- -e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \
- $< > $@
+ $(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp
+ $(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp
+ $(Verb)sed -f lit.tmp $< > $@
$(Verb)chmod +x $@
+ $(Verb)rm -f lit.tmp