Fix ccclib building when building in a separate build tree.

llvm-svn: 62621
This commit is contained in:
Mike Stump 2009-01-20 21:54:36 +00:00
parent 7322ea25a5
commit c1b44ce610
1 changed files with 7 additions and 7 deletions

View File

@ -13,16 +13,16 @@ include $(LEVEL)/Makefile.common
install-local:: $(PROJ_bindir)/ccc $(PROJ_bindir)/ccclib
Extra := $(wildcard ccclib/*.py)
Extra := $(wildcard $(PROJ_SRC_ROOT)/tools/clang/tools/ccc/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
$(Verb) mkdir -p "$(PROJ_bindir)/ccclib"
$(Verb) cp -p $? "$(PROJ_bindir)/ccclib"
$(Verb) python -m compileall -d "$(PROJ_prefix)/bin/ccclib" "$(PROJ_bindir)/ccclib"
$(Verb) touch "$(PROJ_bindir)/ccclib"
$(PROJ_bindir)/ccc : ccc
$(Echo) Installing $< shell script.
$(Verb) cat $< > $@
$(Verb) chmod 0755 $@
$(Verb) cat $< > "$@"
$(Verb) chmod 0755 "$@"