From 0faea04e8f4d6c7d26d087dff24773e3f35d1301 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 29 Jun 2009 22:59:36 +0000 Subject: [PATCH] Fix install of libCompilerDriver dynamic library to not copy on every build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74473 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CompilerDriver/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/CompilerDriver/Makefile b/lib/CompilerDriver/Makefile index bbef2e34a14..773eb5e8e1a 100644 --- a/lib/CompilerDriver/Makefile +++ b/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) \