blob: 77021bbc2436cf9a15312c9d427b1e5db727a054 [file] [log] [blame]
Daniel Dunbarb7698a42010-08-02 00:39:42 +00001##===- utils/llvm-lit/Makefile -----------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9
10LEVEL = ../..
11
12include $(LEVEL)/Makefile.common
13
14all:: $(ToolDir)/llvm-lit
15
NAKAMURA Takumi78a82952011-03-08 12:25:19 +000016$(ToolDir)/llvm-lit: llvm-lit.in Makefile $(ToolDir)/.dir
Daniel Dunbarb7698a42010-08-02 00:39:42 +000017 $(Echo) "Creating 'llvm-lit' script..."
NAKAMURA Takumi78a82952011-03-08 12:25:19 +000018 $(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 $< > $@
Daniel Dunbarb7698a42010-08-02 00:39:42 +000021 $(Verb)chmod +x $@
NAKAMURA Takumi78a82952011-03-08 12:25:19 +000022 $(Verb)rm -f lit.tmp