mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Use $(ECHOPATH) to make llvm-lit from llvm-lit.in.
llvm-svn: 127240
This commit is contained in:
parent
16a2bf5caf
commit
c989c9adfa
@ -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