]> granicus.if.org Git - clang/commitdiff
ccc: Add installation of ccc; based on patch from Mike Stump.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 19 Jan 2009 18:50:49 +0000 (18:50 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 19 Jan 2009 18:50:49 +0000 (18:50 +0000)
 - This doesn't follow normal installation procedure of python
   code, but no sense trying too hard since ccc will be moved to
   C++.

 - Entry point is now tools/ccc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62517 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile
tools/ccc/Makefile [new file with mode: 0644]
tools/ccc/ccc [moved from tools/ccc/xcc with 100% similarity]

index 06b92886911d76920580f2b281ac516071f2ec12..51693c4d84e10ef8d4ca06c8170894bd492b6112 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 LEVEL = ../..
-DIRS := lib Driver docs
+DIRS := lib Driver docs tools
 
 include $(LEVEL)/Makefile.common
 
diff --git a/tools/ccc/Makefile b/tools/ccc/Makefile
new file mode 100644 (file)
index 0000000..00f9d2f
--- /dev/null
@@ -0,0 +1,28 @@
+##===- tools/ccc/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
+
+install-local:: $(PROJ_bindir)/ccc $(PROJ_bindir)/ccclib
+
+Extra := $(wildcard ccclib/*.py)
+
+$(PROJ_bindir)/ccclib : $(Extra)
+       $(Echo) Installing ccclib.
+       $(Verb) mkdir -p $(PROJ_bindir)/ccclib
+       $(Verb) cp $? $(PROJ_bindir)/ccclib
+       $(Verb) python -m compileall $(PROJ_bindir)/ccclib 
+       $(Verb) touch $(PROJ_bindir)/ccclib
+
+$(PROJ_bindir)/ccc : ccc
+       $(Echo) Installing $< shell script.
+       $(Verb) cat $< > $@
+       $(Verb) chmod 0755 $@
similarity index 100%
rename from tools/ccc/xcc
rename to tools/ccc/ccc