summaryrefslogtreecommitdiffstats
path: root/lib/CompilerDriver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CompilerDriver/Makefile')
-rw-r--r--lib/CompilerDriver/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/CompilerDriver/Makefile b/lib/CompilerDriver/Makefile
index bbef2e3..773eb5e 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) \