llvm.org GIT mirror llvm / 78a8295
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 NAKAMURA Takumi 8 years ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1212
1313 all:: $(ToolDir)/llvm-lit
1414
15 $(ToolDir)/llvm-lit: llvm-lit.in $(ToolDir)/.dir
15 $(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir
1616 $(Echo) "Creating 'llvm-lit' script..."
17 $(Verb)sed -e "s#@LLVM_SOURCE_DIR@#$(LLVM_SRC_ROOT)#g" \
18 -e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \
19 $< > $@
17 $(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp
18 $(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp
19 $(Verb)sed -f lit.tmp $< > $@
2020 $(Verb)chmod +x $@
21 $(Verb)rm -f lit.tmp