From c1b44ce610a39ce649f895f292470a23807202d2 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 20 Jan 2009 21:54:36 +0000 Subject: [PATCH] Fix ccclib building when building in a separate build tree. llvm-svn: 62621 --- clang/tools/ccc/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clang/tools/ccc/Makefile b/clang/tools/ccc/Makefile index 00f9d2fa821e..139c5d8a2638 100644 --- a/clang/tools/ccc/Makefile +++ b/clang/tools/ccc/Makefile @@ -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 "$@"