summaryrefslogtreecommitdiff
path: root/utils/llvm-lit/Makefile
blob: 702591f495915d214b64999377c7b70eb91f3aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
##===- 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

$(ToolDir)/llvm-lit: llvm-lit.in $(ToolDir)/.dir
	$(Echo) "Creating 'llvm-lit' script..."
	$(Verb)sed -e "s#@LLVM_SOURCE_DIR@#$(LLVM_SRC_ROOT)#g" \
	     -e "s#@LLVM_BINARY_DIR@#$(LLVM_OBJ_ROOT)#g" \
	     $< > $@
	$(Verb)chmod +x $@