From c72e5aee742dd7101ac46e08ce560d991a575b3e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 19 Jan 2009 18:50:49 +0000 Subject: [PATCH] ccc: Add installation of ccc; based on patch from Mike Stump. - 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 | 2 +- tools/ccc/Makefile | 28 ++++++++++++++++++++++++++++ tools/ccc/{xcc => ccc} | 0 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 tools/ccc/Makefile rename tools/ccc/{xcc => ccc} (100%) diff --git a/Makefile b/Makefile index 06b9288691..51693c4d84 100644 --- 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 index 0000000000..00f9d2fa82 --- /dev/null +++ b/tools/ccc/Makefile @@ -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 $@ diff --git a/tools/ccc/xcc b/tools/ccc/ccc similarity index 100% rename from tools/ccc/xcc rename to tools/ccc/ccc -- 2.40.0