]> git.proxmox.com Git - rustc.git/blame - src/llvm/utils/llvm-lit/Makefile
Imported Upstream version 1.0.0+dfsg1
[rustc.git] / src / llvm / utils / llvm-lit / Makefile
CommitLineData
223e47cc
LB
1##===- 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
1a4d82fc
JJ
14# llvm-lit needs suffix.py for multiprocess to find a main module.
15ifeq ($(HOST_OS),MingW)
16 Suffix := .py
17endif
223e47cc 18
1a4d82fc
JJ
19all:: $(ToolDir)/llvm-lit$(Suffix)
20
21$(ToolDir)/llvm-lit$(Suffix): llvm-lit.in Makefile $(ToolDir)/.dir
223e47cc
LB
22 $(Echo) "Creating 'llvm-lit' script..."
23 $(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp
24 $(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp
25 $(Verb)sed -f lit.tmp $< > $@
26 $(Verb)chmod +x $@
27 $(Verb)rm -f lit.tmp