2010-08-02 08:39:42 +08:00
|
|
|
##===- utils/llvm-lit/Makefile -----------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
|
|
|
LEVEL = ../..
|
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
|
|
|
all:: $(ToolDir)/llvm-lit
|
|
|
|
|
2011-03-08 20:25:19 +08:00
|
|
|
$(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir
|
2010-08-02 08:39:42 +08:00
|
|
|
$(Echo) "Creating 'llvm-lit' script..."
|
2011-03-08 20:25:19 +08:00
|
|
|
$(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 $< > $@
|
2010-08-02 08:39:42 +08:00
|
|
|
$(Verb)chmod +x $@
|
2011-03-08 20:25:19 +08:00
|
|
|
$(Verb)rm -f lit.tmp
|