diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-08 12:25:19 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-03-08 12:25:19 +0000 |
commit | 78a8295146f0a1934a154102a8bab3fb4c3092fc (patch) | |
tree | 76f075c8b67b9b46067179f4531e3553a4092711 /utils/llvm-lit | |
parent | 027248567b91440b0625cb184bb69d6171deaac5 (diff) | |
download | external_llvm-78a8295146f0a1934a154102a8bab3fb4c3092fc.zip external_llvm-78a8295146f0a1934a154102a8bab3fb4c3092fc.tar.gz external_llvm-78a8295146f0a1934a154102a8bab3fb4c3092fc.tar.bz2 |
Use $(ECHOPATH) to make llvm-lit from llvm-lit.in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/llvm-lit')
-rw-r--r-- | utils/llvm-lit/Makefile | 9 |
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 |