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. llvm-svn: 62517
This commit is contained in:
parent
6c02498215
commit
f6135630a8
|
|
@ -1,5 +1,5 @@
|
||||||
LEVEL = ../..
|
LEVEL = ../..
|
||||||
DIRS := lib Driver docs
|
DIRS := lib Driver docs tools
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 $@
|
||||||
Loading…
Reference in New Issue