mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
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
This commit is contained in:
parent
027248567b
commit
78a8295146
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user