summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/utils/llvm-lit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/utils/llvm-lit/Makefile')
-rw-r--r--contrib/llvm/utils/llvm-lit/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/llvm/utils/llvm-lit/Makefile b/contrib/llvm/utils/llvm-lit/Makefile
new file mode 100644
index 0000000..702591f
--- /dev/null
+++ b/contrib/llvm/utils/llvm-lit/Makefile
@@ -0,0 +1,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 $@
OpenPOWER on IntegriCloud