summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-29 22:59:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-29 22:59:36 +0000
commitf71a0cca8483b429cfb8b15a07b8c1ac9c375cbe (patch)
treebd26f06d5f6ad03a3bd6226a46e444d82506402c
parent074a18a8fd4048a98693c90dd679f6e53877fc4c (diff)
downloadbcm5719-llvm-f71a0cca8483b429cfb8b15a07b8c1ac9c375cbe.tar.gz
bcm5719-llvm-f71a0cca8483b429cfb8b15a07b8c1ac9c375cbe.zip
Fix install of libCompilerDriver dynamic library to not copy on every build.
llvm-svn: 74473
-rw-r--r--llvm/lib/CompilerDriver/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/CompilerDriver/Makefile b/llvm/lib/CompilerDriver/Makefile
index bbef2e34a14..773eb5e8e1a 100644
--- a/llvm/lib/CompilerDriver/Makefile
+++ b/llvm/lib/CompilerDriver/Makefile
@@ -21,11 +21,12 @@ include $(LEVEL)/Makefile.common
FullLibName = $(LIBRARYNAME)$(SHLIBEXT)
+all-local:: $(ToolDir)/$(FullLibName)
+
# Copy the library to the bin dir so that llvmc can find it.
-all-local::
- $(Echo) Copying $(BuildMode) Shared Library $(FullLibName) \
- to $(ToolDir)
- -$(Verb) $(CP) $(LibDir)/$(FullLibName) $(ToolDir)/
+$(ToolDir)/$(FullLibName): $(LibDir)/$(FullLibName) $(ToolDir)/.dir
+ $(Echo) Copying $(BuildMode) Shared Library $(FullLibName) to $@
+ -$(Verb) $(CP) $< $@
clean-local::
$(Echo) Removing $(BuildMode) Shared Library $(FullLibName) \
OpenPOWER on IntegriCloud