diff options
author | Mike Stump <mrs@apple.com> | 2009-01-20 21:54:36 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-01-20 21:54:36 +0000 |
commit | c1b44ce610a39ce649f895f292470a23807202d2 (patch) | |
tree | 8edcf69b1947895483496c920bff30a4bc9d5be0 /clang | |
parent | 7322ea25a5a8120cdeec10ee46a31cdb95334f7b (diff) | |
download | bcm5719-llvm-c1b44ce610a39ce649f895f292470a23807202d2.tar.gz bcm5719-llvm-c1b44ce610a39ce649f895f292470a23807202d2.zip |
Fix ccclib building when building in a separate build tree.
llvm-svn: 62621
Diffstat (limited to 'clang')
-rw-r--r-- | clang/tools/ccc/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/tools/ccc/Makefile b/clang/tools/ccc/Makefile index 00f9d2fa821..139c5d8a263 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 "$@" |