OSDN Git Service

Add install-libs target which only installs libraries, not tools
authorNate Begeman <natebegeman@mac.com>
Thu, 13 Dec 2007 02:17:17 +0000 (02:17 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 13 Dec 2007 02:17:17 +0000 (02:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44979 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile

index c367e73..dcb98fc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,11 @@ ifeq ($(MAKECMDGOALS),libs-only)
   OPTIONAL_DIRS :=
 endif
 
+ifeq ($(MAKECMDGOALS),install-libs)
+  DIRS := $(filter-out tools runtime docs, $(DIRS))
+  OPTIONAL_DIRS := $(filter bindings, $(OPTIONAL_DIRS))
+endif
+
 ifeq ($(MAKECMDGOALS),tools-only)
   DIRS := $(filter-out runtime docs, $(DIRS))
   OPTIONAL_DIRS :=
@@ -81,6 +86,7 @@ dist-hook::
 
 tools-only: all
 libs-only: all
+install-libs: install
 
 #------------------------------------------------------------------------
 # Make sure the generated headers are up-to-date. This must be kept in