1 ##===- utils/llvm-lit/Makefile -----------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
12 include $(LEVEL)/Makefile.common
14 all:: $(ToolDir)/llvm-lit
16 $(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir
17 $(Echo) "Creating 'llvm-lit' script..."
18 $(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp
19 $(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp
20 $(Verb)sed -f lit.tmp $< > $@