Fix install of libCompilerDriver dynamic library to not copy on every build.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 29 Jun 2009 22:59:36 +0000 (22:59 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 29 Jun 2009 22:59:36 +0000 (22:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74473 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CompilerDriver/Makefile

index bbef2e34a14127530c430b5fc6c3d93fe9ca71ce..773eb5e8e1aa1664a3060dcdfede1635977572c2 100644 (file)
@@ -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) \