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 | 09abfea5b6fbe8ac98b2943034e53ab13b0acd07 (patch) | |
tree | d256694b24fa46173ab9a9596c63c21dc885134a | |
parent | 62005c16bc3a416c1ecfe0ceaeda9a8dd3e5b0be (diff) |
Fix ccclib building when building in a separate build tree.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62621 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/ccc/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/ccc/Makefile b/tools/ccc/Makefile index 00f9d2fa82..139c5d8a26 100644 --- a/tools/ccc/Makefile +++ b/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 "$@" |