diff options
Diffstat (limited to 'utils/llvm-lit')
-rw-r--r-- | utils/llvm-lit/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/llvm-lit/Makefile b/utils/llvm-lit/Makefile index 77021bbc24..702591f495 100644 --- a/utils/llvm-lit/Makefile +++ b/utils/llvm-lit/Makefile @@ -13,10 +13,9 @@ include $(LEVEL)/Makefile.common all:: $(ToolDir)/llvm-lit -$(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir +$(ToolDir)/llvm-lit: llvm-lit.in $(ToolDir)/.dir $(Echo) "Creating 'llvm-lit' script..." - $(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)sed -e "s#@LLVM_SOURCE_DIR@#$(LLVM_SRC_ROOT)#g" \ + -e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \ + $< > $@ $(Verb)chmod +x $@ - $(Verb)rm -f lit.tmp |